Skip to content

Instantly share code, notes, and snippets.

@TheSkyFox3006
Last active October 16, 2020 00:21
Show Gist options
  • Save TheSkyFox3006/4181ce62b1d41fb4cfc8d011945cea0e to your computer and use it in GitHub Desktop.
Save TheSkyFox3006/4181ce62b1d41fb4cfc8d011945cea0e to your computer and use it in GitHub Desktop.
Exploratory Data Analysis(EDA)
#Install all the below mention librarie before using pandas-profiling
import pandas as pd
import numpy as np
from pandas_profiling import ProfileReport
#EDA using pandas-profiling
profile = ProfileReport(pd.read_csv('titanic.csv'),title='Pandas Profiling Report',html={'style': {'full_width': True}}, sort="None"))
#to view result in jupyter notebook or google colab
profile.to_widgets()
#saving results into a HTML File
profile.to_file("result.html)
@TheSkyFox3006
Copy link
Author

This is an easiest way to do Exploratory Data Analysis(EDA) using python on Titanic Dataset.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment