Code: github.com/nikhilkumarsingh/choropleth-python-tutorial Reading Wikipedia Tables using Python: ua-cam.com/video/7NmBCUOIYPk/v-deo.html Introduction to Pandas : tinyurl.com/ycr4qytt
Hello, Thank you for the content! I just want to point out that I've found your code in the 11:20 a little bit confusing, I suggest you to write as the following: states_id = {} for feature in india_states['features']: properties = feature['properties'] states_id[properties['st_nm']] = properties['state_code'] I think it would become better organized.
if we want to change the output of fig.show from browser to jupyter notebook, what are the commands? I tried mentioning chrome for pio.renderers='chrome' ,it is saying `Can't locate a browser with key in ('chrome', 'google-chrome')`
Put 'browser', instead of chrome and make sure the browser u run commands is default. Save the plot in variable and type variable name then run, so that the map will be displayed on Jupyter Eg: x = plot....etc x #var will be displayed
Thank you very much for the video! It's been really useful. But I have one question yet. Is it possible to integrate and show this maps on a tkinter frame, or in any other GUI library?
Python beginner - I want to plot Literacy rates of Indian states as a choropleth map of India. I have the data in a .csv file as I could not find a geojson file. But I am unable to understand how to map it. My assignment is due tomorrow and I have been stuck in this since yesterday. Any help would be appreciated.
Hi, thank you for this tutorial, could you please let me know if you can make a tutorial on how to plot for indian districts and where would we get the geojson file for indian districts.
hello need help, I have the map of India and have to know which color is there on every state and every color have the no and the map don't have names of state we have to get that using lat and long using python
I did all the steps as shown in the video but it is showing me the following error in jupyter notebook: "Can't locate a browser with key in ('chrome', 'google-chrome')" It is chrome as it is my default browser
Very useful vidio sir I need a help, I need geo json file for indian cricket stadium, I searched on google but dont find any please help where I can find this json file.
@@Arbaaz12399 well I used the same code at first but I couldn't load it after I used a With openurl ('url') as response: Tunisia=json.load(response) Print (Tunisia) And the other problem is I didn't get why you transformed the data ? I have a CSV that already has the same Id as the geojson file fo I need to do it 2 ? Coz I keep getting errors that has nothing to do with syntax so I'm not lost.
@@Arbaaz12399 yep it worked now I want to learn how to build a dashboard using multiple graphics can you elaborate this with the plotly I kinda find dash callbacks hard to understand thank you
when i try run this pio.renderers.format = 'chrome', i keep getting this error "str' object has no attribute 'default'". Anyone know how i can fix this ?
You should replace the 'and' for the '&' sign. The Wikipedia table has been updated since the video recording. So some of its data won't be compatible with the GEOJSON one. You will have to rename some of the states names.
This is the most useful video over choropleth maps but I've came across a problem where my map shows up with legend color bar but the map is not showing colours and I don't have any error message as well. If anyone can help that would be appreciated ❤
Great video, so Can I ask you something?, I have a problem about the use of this library when I try to use an especial polygon data for geojson file, the result of the plot can not show the complete polygon, just shows a rectangle which hide the other polygons with a background color, so How can I configure this for showing the only polygon that I need like a states in your example, Thanks for your attention, best regards.
@indian Pythonista..i have one question..what if I want to show the output in Google chrome instead of firefox?? I have searched over the internet but I cannot find it . could you please help me in this regard
@@psgvmajorproject9661 ..Thank you...i have done it ..but its not coming..so I have decided not to run the code plotly.io. instead it is showing the output on jupyter notebook itself
Hey bro. I tried what you told, but if I remove that code and just run fig.show() it gives me an error. Shows that couldn’t locate runnable browser. Can you help me
Thanks I made a choropleth map of India for covid 19 cases with the help of this video. But the plot output is very resource intensive I get memory error on Jupyter, however it runs fine on Google Collab. But I want to embed this map on a webpage but it takes infinite time for loading, other plots open quickly except for this one. Any kind of help is appreciated!!
Not explained the for loop well at all, whats the point of the rest of the video? df["id"] = df["State or union territory"].apply(lambda x: state_id_map[x]) - just isnt working? Gives me error: KeyError: 'Arunachal Pradesh' Waste of time, not clearly explained
i love you brother....i learn a lot of from....can you do a video how to convert blob url of video or image to mp4 ......thanks alot of Sir ...god bless you
Code: github.com/nikhilkumarsingh/choropleth-python-tutorial
Reading Wikipedia Tables using Python: ua-cam.com/video/7NmBCUOIYPk/v-deo.html
Introduction to Pandas : tinyurl.com/ycr4qytt
Thank you so much for this wonderful video. How i can get geojsn file for a specific area in a district?
Mann! you are such a lifesaver. I have been stuck in choropleth for hours. Thank you for this video and keeping uploading content like this.
I don't normally comment on videos but this was no less than a lifesaver, thank you so much for this tutorial!!
"goes" magically became "geos".
Excellent video!
This is beautiful. Thank you for this awesome knowledge you gave for for free
Great! Thanks for the tutorial. I am currently working with Plotly and Dash, tools with a lot of potential.
Excellent Video.. keep up the good work bro!
Thank you..I was stuck with my project...you saved me
Very well explained. I'll be referring to this video quite often
Nice video Bro. Really appreciate the hard work. Thanks for the awesome content on Python.
Nice demonstration of px mapping capabilities. Thanks!
Great video, thanks for making it!
Hello,
Thank you for the content! I just want to point out that I've found your code in the 11:20 a little bit confusing, I suggest you to write as the following:
states_id = {}
for feature in india_states['features']:
properties = feature['properties']
states_id[properties['st_nm']] = properties['state_code']
I think it would become better organized.
You are simply brrrrrrrrriliant!
I just subscribed. Your explanations are detailed ❤️
if we want to change the output of fig.show from browser to jupyter notebook, what are the commands?
I tried mentioning chrome for pio.renderers='chrome' ,it is saying `Can't locate a browser with key in ('chrome', 'google-chrome')`
Put 'browser', instead of chrome and make sure the browser u run commands is default.
Save the plot in variable and type variable name then run, so that the map will be displayed on Jupyter
Eg:
x = plot....etc
x #var will be displayed
Thank you so much ! ( from France ^^)
I have the shape file where data is in the form of polygon and multipolygon. How to use such data? It is.shp format.
Thank you very much for the video! It's been really useful. But I have one question yet. Is it possible to integrate and show this maps on a tkinter frame, or in any other GUI library?
What if I want to display the population density over each state instead of passing it into the Hover Data, how to do that?
Python beginner - I want to plot Literacy rates of Indian states as a choropleth map of India. I have the data in a .csv file as I could not find a geojson file. But I am unable to understand how to map it. My assignment is due tomorrow and I have been stuck in this since yesterday. Any help would be appreciated.
Very Informative. Thanks a lot.
Do you have any idea on how to get the name of states look fixed on the map rather than having to hover?
I am getting a broken pipe error in my code. Can someone please tell me how to fix this?
how to install the geojson file? i doesn't download after i pressed download
hey it is giving error
Error: could not locate runnable browser
can you please help me with this
bro im trying to learn python through projects im unable to load the geojson file if you can help
Sir regarding geojson file I want to create GOA STATE GEOJSON FILE. HOW TO PROCEED WITH IT?
Hi, thank you for this tutorial, could you please let me know if you can make a tutorial on how to plot for indian districts and where would we get the geojson file for indian districts.
Nice explanation. Thank you for your time and effort!
I haven't been able to get past the fig.show(), it keeps popping the error:
Error: could not locate runnable browser, any idea how to get past this?
Its been 2 days and I am trying to label data and name of state in every state.
How to do that??
hello
need help, I have the map of India and have to know which color is there on every state and every color have the no and the map don't have names of state we have to get that using lat and long using python
I did all the steps as shown in the video but it is showing me the following error in jupyter notebook:
"Can't locate a browser with key in ('chrome', 'google-chrome')"
It is chrome as it is my default browser
Very useful vidio sir
I need a help, I need geo json file for indian cricket stadium, I searched on google but dont find any please help where I can find this json file.
how can i create this choropleth map in html division
Thank you very much ❤❤❤
Great video! Is there a way to plot points based on lat/lon over a map like the one you created?
So systematic, Brilliant..
In cell 23 you have written goes instead of geos
Still code is running!
How 🤷♂️?
Thank you so much for this tutorial video! Very helpful for my project. ❤️
I need a help, I need a map specific to india, on which I want to plot scatters...
This is such a great video, thanks for sharing! Please do more videos on geospatial data with python🙏
Well done on this tutorial,
It was very helpful and clever.
is there any way to label the state names instead of using hover_name??
what will be the renderers name if I use microsoft edge
I am facing an issue in plotting another map ..let me know where I can ping the issue,used the above method to plot
Thanks for the great video
Somehow when I try to load the Json file it doesn't read it :( how can I fix it
how did you try read it in
@@Arbaaz12399 well I used the same code at first but I couldn't load it after I used a
With openurl ('url') as response:
Tunisia=json.load(response)
Print (Tunisia)
And the other problem is I didn't get why you transformed the data ? I have a CSV that already has the same Id as the geojson file fo I need to do it 2 ? Coz I keep getting errors that has nothing to do with syntax so I'm not lost.
@@alayetmanel6986 so is the Json file working now because for my project I had to modify the code slightly to make it work .
@@Arbaaz12399 yep it worked now I want to learn how to build a dashboard using multiple graphics can you elaborate this with the plotly I kinda find dash callbacks hard to understand thank you
Thanks for this video. Is this map available at the district level in India?
when i try run this pio.renderers.format = 'chrome', i keep getting this error "str' object has no attribute 'default'". Anyone know how i can fix this ?
chrome is not the keyword i think
same issue
Plotly graph is displayed as blank in Jupyter notebook ,but when I save the image I can see it.Anyone knows how to fix this?
Awesome!!
why are you using geojson.Let me know how we can build it without geojson
my df['id'] = df['State or Union Territory'].apply(lambda x: state_id_map[x]) is not working can u help please it says KeyError: 'Jammu and Kashmir'
change the name to Jammu & Kashmir
I'm having problem while adding df [id] with error Jammu and Kashmir..what shall I Do?
You should replace the 'and' for the '&' sign.
The Wikipedia table has been updated since the video recording. So some of its data won't be compatible with the GEOJSON one. You will have to rename some of the states names.
Using .shp file or a shape file turns out to be lot easier. BUT I loved the way you wrote the code as you are explaning, that is Perfecton!!
This is the most useful video over choropleth maps but I've came across a problem where my map shows up with legend color bar but the map is not showing colours and I don't have any error message as well. If anyone can help that would be appreciated ❤
Hello, is this map is correct? ladahak and jaamu are separated UT now. can anyone provide latest geo json of india?
Hi, did you find it? I want it too.
@@riasigtia5293 yes, i created actually
@@rahulsoni007 how ? Can you share the JSON file
@@rahulsoni007 srsubodh@mitaoe.ac.in
Great video, so Can I ask you something?, I have a problem about the use of this library when I try to use an especial polygon data for geojson file, the result of the plot can not show the complete polygon, just shows a rectangle which hide the other polygons with a background color, so How can I configure this for showing the only polygon that I need like a states in your example, Thanks for your attention, best regards.
the map is not specifying state and do not shows data
It's a great tutorial, thank you!
@indian Pythonista..i have one question..what if I want to show the output in Google chrome instead of firefox??
I have searched over the internet but I cannot find it . could you please help me in this regard
just type "chrome"
@@psgvmajorproject9661 ..Thank you...i have done it ..but its not coming..so I have decided not to run the code plotly.io. instead it is showing the output on jupyter notebook itself
Hey bro. I tried what you told, but if I remove that code and just run fig.show() it gives me an error. Shows that couldn’t locate runnable browser. Can you help me
@@psgvmajorproject9661 ..how can I show you over here..you can send me your email..I can forward the jupyter notebook file
thanks for posting
very good video! thanks
thank you from indonesia
Thank you 😀
bro write a medium blog explaining your videos themselves, and embed UA-cam videos into that blog. You will get more traffic
Thanks for sharing 😊
Thanks I made a choropleth map of India for covid 19 cases with the help of this video. But the plot output is very resource intensive I get memory error on Jupyter, however it runs fine on Google Collab. But I want to embed this map on a webpage but it takes infinite time for loading, other plots open quickly except for this one. Any kind of help is appreciated!!
Good
in the future could you leave comments in your notebook code of what your code is doing? Thanks for the GitHub link!
Thanks bro this really helped!!
It is very useful for me
May I know which OS do you use? Is it in Virtualbox?
It's Ubuntu 18.04. Not in virtual box.
@@IndianPythonista Can you pls make a video on how you customized Ubuntu?
Nice video
Nice on bro!
Not explained the for loop well at all, whats the point of the rest of the video?
df["id"] = df["State or union territory"].apply(lambda x: state_id_map[x]) - just isnt working? Gives me error: KeyError: 'Arunachal Pradesh'
Waste of time, not clearly explained
Nice!! video
thanks :)
love you
i love you brother....i learn a lot of from....can you do a video how to convert blob url of video or image to mp4 ......thanks alot of Sir ...god bless you
Sir plz provide your email i have some queries
Sir plz accept my request in LinkedIn,. I need help
Thanks
Worst explanation. Unneceserrality makingeasy topic difficult my doing some bullshit state id map and whatnot!