Easy Data Understanding Using pandas_profiling
How do you usually explore new dataset? By checking the file and the column one by one. The checking include:
a. Number of column and row
b. Data type of each column
c. Missing data in each column
d. Distribution of each column
e. Correlation between column
This checking task is tedious, especially if we have data where we have a lot of columns and rows.
I was just encounter a python package called “pandas_profiling”. We can easily install the package using pip or conda
conda install -c anaconda pandas-profilingpip install pandas-profilingHere are some example.
Data was downloaded from Kaggle
https://www.kaggle.com/hmavrodiev/london-bike-sharing-dataset
Reading the data and explore using pandas profiling
1 2 3 4 | # Importing packageimport pandas as pd#orfrom pandas_profiling import ProfileReport |
1 2 3 | # Reading csv datalondon = pd.read_csv('london_merged.csv')london.head() |

Comments
Post a Comment