When anyone figures out how to get the number of rows and columns, they usually just mention that you get it when you run head. Some people google and find len(df.columns) for that bit, but I've never seen anyone come up with df.shape on their own. This always feels awkward, but I'm not sure what the best presentation is.
When anyone figures out how to get the number of rows and columns, they usually just mention that you get it when you run
head
. Some people google and findlen(df.columns)
for that bit, but I've never seen anyone come up withdf.shape
on their own. This always feels awkward, but I'm not sure what the best presentation is.