import dtale
from pandas_profiling import ProfileReport
from dataprep.eda import create_report
class AutomateEDA:
def __init__(self, df):
self.df = df
def show_dtale(self):
d = dtale.show(self.df)
d.open_browser()
print('dtale opened in browser!')
def show_pandas_profile_report(self):
profile = ProfileReport(self.df, title="Pandas Profiling Report", explorative=True)
profile.to_file("pandas-profiling-report.html")
print('pandas-profile-report created and saved in the project folder!')
def show_dataprep(self):
create_report(self.df).show_browser()
print('dataprep opened in browser!')
def show_all(self):
self.show_dtale()
self.show_dataprep()
self.show_pandas_profile_report();
eda = AutomateEDA(df)
eda.show_all()