How to count rows and columns in pandas dataframe

 

How to count rows and columns in pandas dataframe.


How to count rows in pandas dataframe.

print(len(df.index))


How to get Columns names in pandas dataframe.

df.columns


How to count Columns in pandas dataframe.

print(len(df.columns)


Visit our website delve solutions

Popular posts from this blog

When to book profits with shares