Skip to content

Instantly share code, notes, and snippets.

@sergiolucero
Last active April 8, 2017 21:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sergiolucero/7457794a18e976ad551d0cad39f31d47 to your computer and use it in GitHub Desktop.
Save sergiolucero/7457794a18e976ad551d0cad39f31d47 to your computer and use it in GitHub Desktop.
import folium
import geopandas as gp
from fetch_airquality import fetch_data
df = fetch_data().rename(columns={'city': 'ciudad'})
df['medida'] = ['%s[%s]' %(p, u) for p, u in zip(df['parameter'], df['unit'])]
df = df.drop(['parameter', 'unit'], axis=1)
data = df.to_html(index=False, border=10, justify='right')
m = folium.Map(df[['lat','lng']].values)
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment