Data profiling in Pandas using Python
Pandas is one of the most popular Python library mainly used for data manipulation and analysis. When we are working with large data, many times we need to perform Exploratory Data Analysis. We need to get the detailed description about different columns available and there relation, null check, data types, missing values, etc. So, Pandas profiling is the python module which does the EDA and gives detailed description just with a few lines of code.
Installation:
pip install pandas-profiling
Example:
import pandas as pd
import pandas_profiling
df = pd.read_csv( 'Geeks.csv' )
profile = df.profile_report(title = 'Pandas Profiling Report' )
profile.to_file(output_file = "pandas_profiling1.html" )
profile.to_file(output_file = "pandas_profiling2.json" )
|
Output:
HTML File:
JSON File:
Last Updated :
04 May, 2020
Like Article
Save Article
Share your thoughts in the comments
Please Login to comment...