Counting Unique Data in Pandas Columns π
Learn how to count occurrences and find unique data in DataFrame columns using Pandas for machine learning.

Codemy.com
5.2K views β’ Dec 5, 2022

About this video
In this video I'll show you how to return number of occurrences of specific data, as well as only unique data from your dataframe in Pandas.
First we'll use value_counts() to get the number of occurrences of a thing.
Then we'll use .unique() to show only the unique items in a particular column of our dataFrame.
#pandas #codemy #JohnElder
Timecodes
0:00ββ - Introduction
0:56 - Grab A Specific Column
1:10 - Return Value_Counts of Column
1:56 - Return Unique Data
2:35 - Return Top 50 Unique Names
3:10 - Conclusion
First we'll use value_counts() to get the number of occurrences of a thing.
Then we'll use .unique() to show only the unique items in a particular column of our dataFrame.
#pandas #codemy #JohnElder
Timecodes
0:00ββ - Introduction
0:56 - Grab A Specific Column
1:10 - Return Value_Counts of Column
1:56 - Return Unique Data
2:35 - Return Top 50 Unique Names
3:10 - Conclusion
Tags and Topics
Browse our collection to discover more content in these categories.
Video Information
Views
5.2K
Likes
169
Duration
3:58
Published
Dec 5, 2022
User Reviews
4.6
(1) Related Trending Topics
LIVE TRENDSRelated trending topics. Click any trend to explore more videos.