In this video, see how to use sort_values().
- [Instructor] Sort_values() sorts the values in a series.…As axis is equal to zero, you are sorting along the column…and in ascending order by default.…So if you visualize a series as being a single column,…you are sorting the contents of that column…in ascending order.…By default, the NaNs, or missing data,…are put right at the end.…Sort_values(), when used in conjunction with a DataFrame,…is particularly useful as you can sort multiple series…in ascending and descending order.…
Let's head over to the Jupyter Notebook for some examples.…Let's sort by the athletes' names.…So OO is the name of the DataFrame,…Athlete gives us the details of the athlete's name,…and sort_values().…So this provides us the list of all of the athletes' names…sorted by the name of the athlete.…Now if we look at the options available within sort values,…hitting Shift + Tab provides one of the arguments,…inplace equals false.…
The inplace argument is one we will see often.…And by default, inplace is equal to false,…which means a new series will be returned.…
- Working with plots
- Boolean indexing
- String handling
- Grouping data
- Creating your own colormaps
Skill Level Intermediate
1. Technical Setup
2. Series and DataFrames
3. Data Input and Validation
4. Basic Analysis
5. Basic Plotting
9. Data Visualizations
Next steps1m 1s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.