Skip to content

Instantly share code, notes, and snippets.

@barrysmyth
Created April 11, 2020 16:47
Show Gist options
  • Save barrysmyth/36530b07c49c4390b4884706751cb82d to your computer and use it in GitHub Desktop.
Save barrysmyth/36530b07c49c4390b4884706751cb82d to your computer and use it in GitHub Desktop.
A snippet of code to test a simple heatmap.
# Test a simple heatmap for using the SI dataframe for a sample
# of 10 countries
import pandas as pd
import seaborn as sns
sns.heatmap(
stringency_for_country_by_date.loc[use_countries[:10]],
ax=ax, cbar=True
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment