Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# Correlation between two columns with dropdown
@interact
def correlations(column1=list(df.select_dtypes('number').columns),
column2=list(df.select_dtypes('number').columns)):
print(f"Correlation: {df[column1].corr(df[column2])}")
# Stats of a column with dropdown
@interact
def describe(column=list(df.columns)):
print(df[column].describe())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment