Complete the code to get the 3 largest values from the 'score' column.
top_scores = df['score'].[1](3)
The nlargest() function returns the top n largest values from a Series.
Complete the code to get the 2 smallest values from the 'age' column.
youngest = df['age'].[1](2)
The nsmallest() function returns the smallest n values from a Series.
Fix the error in the code to get the 4 largest values from the 'height' column.
tallest = df.[1]('height', 4)
The nlargest() method is called on the DataFrame with the column name and number of values.
Fill both blanks to get the 5 smallest values from the 'weight' column.
lightest = df.[1](5, '[2]')
Use nsmallest() on the DataFrame with the column name 'weight' to get smallest values.
Fill all three blanks to create a dictionary of top 3 tallest people's names and heights.
top_tallest = {person: height for person, height in zip(df['[1]'][df['[2]'].[3](3).index], df['[2]'].[3](3))}We use the 'name' column for people, 'height' column for heights, and nlargest(3) to get top 3 heights.