Quiz: Concept of Information

Test yourself on the concepts introduced in this chapter.

1

(Select all that apply.) Which statements are true about the following code snippet?

chart = alt.Chart(df).mark_bar().encode( y = alt.Y('Continent'), x = alt.X('total_gold_medals:Q'), ).transform_aggregate( total_gold_medals='sum(Gold Medals)', groupby=['Continent'] )

A)

The code draws a line chart showing each continent’s gold medals.

B)

The code uses the transform_aggregate() method to count the gold medals by continent.

C)

The variable total_gold_medals is available in the original dataset.

D)

The code draws a bar chart showing each continent’s total number of gold medals.

Question 1 of 40 attempted

Get hands-on with 1200+ tech skills courses.