Piyush Raj

Piyush is a data professional passionate about using data to understand things better and make informed decisions. He has experience working as a Data Scientist in the consulting domain and holds an engineering degree from IIT Roorkee. His hobbies include watching cricket, reading, and working on side projects.

difference between pandas series.unique() and pandas series.cat.categories

Pandas Series.unique() vs Series.cat.categories

In this tutorial, we will look at the difference between the Pandas Series.unique() function and the Pandas Series.cat.categories attribute for a category type column. Difference between Pandas Series.unique() and Series.cat.categories The key difference is that, the pandas Series.unique() function gives us the unique value occurring in the data whereas the pandas.cat.categories property returns the possible […]

Pandas Series.unique() vs Series.cat.categories Read More »

Scroll to Top