This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fig5=Figure(height=550,width=750) | |
m5=folium.Map(location=[28.644800, 77.216721],tiles='cartodbpositron',zoom_start=14) | |
fig5.add_child(m5) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f1.add_to(m5) | |
f2.add_to(m5) | |
f3.add_to(m5) | |
folium.LayerControl().add_to(m5) | |
m5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import pandas as pd | |
# For plotting maps | |
import folium | |
# For Regular Expressions | |
import re | |
# For working with geographical data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
df_covid=pd.read_csv('/covid19-corona-virus-india-dataset/complete.csv') | |
df_covid.head() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
india_geojson=geopandas.read_file('/india-geojson/india_geo.json') | |
india_geojson.head() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
india_geojson.plot() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
df_covid.isnull().sum() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
df_covid.dtypes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
df_covid['Name of State / UT'].unique() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', |