Skip to content

Instantly share code, notes, and snippets.

@sammyrulez
Created March 12, 2020 21:26
Show Gist options
  • Save sammyrulez/fa477ece008d72af24f2d1ed95ece7f3 to your computer and use it in GitHub Desktop.
Save sammyrulez/fa477ece008d72af24f2d1ed95ece7f3 to your computer and use it in GitHub Desktop.
bs= df.loc[df['sigla_provincia'] == 'BS']
bs = bs.sort_values(by=['data'])
bs = bs.drop(['stato', 'codice_regione', 'denominazione_regione','codice_provincia','sigla_provincia','lat','long','denominazione_provincia'], axis=1)
bs = bs.reset_index(drop=True)
bs.columns = ['ds','y']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment