Skip to content

Instantly share code, notes, and snippets.

@eeddaann
Created January 22, 2019 18:39
Show Gist options
  • Save eeddaann/3ebd73f1d1b87f6c5190285e5c2bd925 to your computer and use it in GitHub Desktop.
Save eeddaann/3ebd73f1d1b87f6c5190285e5c2bd925 to your computer and use it in GitHub Desktop.
import pandas as pd
# Create dummy Data Frame
df = pd.DataFrame({
'A': [1,2,-3],
'B': [2,-4,6],
'C': [3,5,-7]
})
print(df.corr().unstack().sort_values().drop_duplicates())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment