course content

Course Content

Advanced Techniques in pandas

Find the Largest Values of a ColumnFind the Largest Values of a Column

In the last chapter, you learned how to output the smallest values; you can definitely do the same with the largest ones. To do so, you will use a very similar function with the same argument as the previous one: .nlargest(). Look at the example of how to output the 10 newest cars, also sorted by 'Engine_volume' - all duplicates included:

question-icon

Choose the CORRECT way to get the top 100 the most expensive cars sorted, firstly by 'Price' and then by 'Year', not including duplicates - just the first 100 values.

Select the correct answer

Everything was clear?

Section 3. Chapter 6