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-profiling
 
pip install pandas-profiling

Here 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 package
import pandas as pd
#or
from pandas_profiling import ProfileReport
1
2
3
# Reading csv data
london = pd.read_csv('london_merged.csv')
london.head()

Comments

Popular posts from this blog

When doesn’t an RFM segmentation work well?