how to use pandas profiling in python code example

Example 1: how to do pandas profiling

//get the latest version of pandas_profiling
import numpy as np
import pandas as pd
import pandas_profiling

df1=pd.read_csv(<File path>)

profile = df1.profile_report(title="<give any name you want>")
profile.to_file(output_file="<givefilename>.html")

Example 2: pandas profiling

!pip install https://github.com/pandas-profiling/pandas-profiling/archive/master.zip
  
from pandas_profiling import ProfileReport

profile = ProfileReport(df, title='Pandas Profiling Report', explorative=True)
profile.to_widgets()