In this video, see how to use value_counts().
- [Instructor] Basic Analysis.…Value_counts, value_counts is one of…the most useful methods in pandas.…It returns a series object, counting all the unique values.…There are two things in particular…to be aware of value_counts.…As this is returning a count of the unique values,…the first value is the most frequently occurring element.…The second, the second most…frequently occurring element and so on.…This order can be reversed by just setting…the ascending flag to True.…
Dropna, one of the parameters within the value_counts…is True by default and you will not get…a count of the na values.…The na values remember are the missing data values.…If your data set has a significant number of na values,…this can be misleading and you can turn this feature off…by setting dropna to False.…Let's now head over now to our Jupyter notebook,…to look at value_counts.…As we've done previously, let's import pandas as pd…and read the CSV file into our data frame.…
Everything seems to be in order…so let's head over to value_counts.…
- 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.