Datapolitan-Training / data-analysis-python

A one-day class in using Python for data analysis in government
http://training.datapolitan.com/data-analysis-python
Creative Commons Attribution Share Alike 4.0 International
2 stars 3 forks source link

311 exercise - awkward start #116

Open justalfred opened 5 years ago

justalfred commented 5 years ago

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.