Skip to content

Instantly share code, notes, and snippets.

View abhishek-shrm's full-sized avatar

ABHISHEK SHARMA abhishek-shrm

  • ZS Associates
  • New Delhi, India
View GitHub Profile
fig5=Figure(height=550,width=750)
m5=folium.Map(location=[28.644800, 77.216721],tiles='cartodbpositron',zoom_start=14)
fig5.add_child(m5)
f1.add_to(m5)
f2.add_to(m5)
f3.add_to(m5)
folium.LayerControl().add_to(m5)
m5
import numpy as np
import pandas as pd
# For plotting maps
import folium
# For Regular Expressions
import re
# For working with geographical data
df_covid=pd.read_csv('/covid19-corona-virus-india-dataset/complete.csv')
df_covid.head()
india_geojson=geopandas.read_file('/india-geojson/india_geo.json')
india_geojson.head()
india_geojson.plot()
df_covid.isnull().sum()
df_covid['Name of State / UT'].unique()
id_dict={'Andaman and Nicobar Islands': '0',
'Arunachal Pradesh': '1',
'Assam': '2',
'Bihar': '3',
'Chandigarh': '4',
'Chhattisgarh': '5',
'Dadra and Nagar Haveli': '6',
'Daman and Diu': '7',
'Goa': '8',
'Gujarat': '9',