Return to Video

Average Bronze Medals - Intro to Data Science

  • 0:01 - 0:03
    All right, why don't we walk through the solution?
  • 0:03 - 0:07
    Here we've created the olympic_medal_counts_df data frame as we
  • 0:07 - 0:08
    did in the previous exercise.
  • 0:10 - 0:13
    Now we're going to define this variable called bronze_at_least_one_gold.
  • 0:14 - 0:17
    What we're doing here is we're picking out the bronze column of
  • 0:17 - 0:19
    the olympics_medal_counts_df data frame.
  • 0:20 - 0:23
    Then we're picking out only the subset of that column.
  • 0:23 - 0:27
    With the indices matching the indices where olympic_metal_counts_df's gold
  • 0:27 - 0:31
    column is greater than or equal to one.
  • 0:31 - 0:36
    Then, we're using numpy.mean to take the average of
  • 0:36 - 0:42
    those values in assigning them to this variable, avg_bronze_at_least_one_gold.
Title:
Average Bronze Medals - Intro to Data Science
Description:

more » « less
Video Language:
English
Team:
Udacity
Project:
ud359: Intro to Data Science
Duration:
0:42

English subtitles

Revisions Compare revisions