Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

dataframe number of unique rows

1
# get the unique values (rows) by retaining last row
2
df.drop_duplicates(keep='last')
Source by www.datasciencemadesimple.com #
 
PREVIOUS NEXT
Tagged: #dataframe #number #unique #rows
ADD COMMENT
Topic
Name
6+9 =