Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

rows count in pand

For a dataframe df, one can use any of the following:

1)len(df.index)
2)df.shape[0]
3)df[df.columns[0]].count() (slowest, but avoids counting NaN values in the first column)
 
PREVIOUS NEXT
Tagged: #rows #count #pand
ADD COMMENT
Topic
Name
4+3 =