Skip to content

Instantly share code, notes, and snippets.

@mickaelandrieu
Created October 29, 2021 14:16
Show Gist options
  • Save mickaelandrieu/e601be91a505a23ffc9517490ec303e5 to your computer and use it in GitHub Desktop.
Save mickaelandrieu/e601be91a505a23ffc9517490ec303e5 to your computer and use it in GitHub Desktop.
import pandas as pd
df = pd.read_csv('https://raw.githubusercontent.com/ageron/handson-ml/master/datasets/housing/housing.csv')
corr = df.corr()
corr.style.background_gradient(cmap='RdBu', vmin = -1, vmax = 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment