Saturday, 23 January 2021

How do I retrieve the number of columns in a Pandas data frame?

How do you programmatically retrieve the number of columns in a pandas dataframe? I was hoping for something like:

df.num_columns


from How do I retrieve the number of columns in a Pandas data frame?

No comments:

Post a Comment