Answers for "sample rows from pandas dataframe based unique values of column"

1

values of unique from dataframe with count

data = df.groupby('ColumnName')['IDColumnName'].nunique()
print(data)
Posted by: Guest on November-07-2020
0

dataframe python unique values rows

# get the unique values (rows)
df.drop_duplicates()
Posted by: Guest on June-03-2020

Code answers related to "sample rows from pandas dataframe based unique values of column"

Python Answers by Framework

Browse Popular Code Answers by Language