Skip to content

Instantly share code, notes, and snippets.

@ranaroussi
Created February 6, 2016 13:37
Show Gist options
  • Save ranaroussi/fa8c1753c204898bb67c to your computer and use it in GitHub Desktop.
Save ranaroussi/fa8c1753c204898bb67c to your computer and use it in GitHub Desktop.
pandas_profiling shorthand for ipython
# Place this script in
# ~/.ipython/profile_default/startup
# -------------------------------------------
import pandas_profiling
from pandas.core.base import PandasObject
def df_profile(df):
return pandas_profiling.ProfileReport(df)
PandasObject.profile = df_profile
# -------------------------------------------
# Now you can profile pandas easily using:
# df.profile()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment