Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Finding the Largest Values of a Column | Extracting Data
Advanced Techniques in pandas
course content

Зміст курсу

Advanced Techniques in pandas

Advanced Techniques in pandas

1. Getting Familiar With Indexing and Selecting Data
2. Dealing With Conditions
3. Extracting Data
4. Aggregating Data
5. Preprocessing Data

Finding 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 method 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:

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.

Виберіть правильну відповідь

Все було зрозуміло?

Секція 3. Розділ 6
We're sorry to hear that something went wrong. What happened?
some-alt