Quick Exploration of a Pandas DataFrame
Python
4 methods for quick exploration of a pandas dataframe.
1| #Shape of the dataframe 2| df.shape 3| 4| #Looks at the first 5 rows 5| df.head() 6| 7| #Explore the dataframe metadata including non-nulls rows and data types 8| df.info() 9| 10| #Get statistical summary of the dataframe columns 11| df.describe()
149
132
127
119