plotting maps with geopandas and matplotlib

hello there, in this lesson, we will use geopandas and matplotlib to plot a geographic map from a CSV file with longitude and latitudes. we will convert the longitude and latitude to geopandas points.
checkout my python for beginners courses here
How to Build GUI Apps with Python and Tkinter
www.udemy.com/share/103cfr/
Learn Python From Scratch and Build 10 Programs
www.udemy.com/share/102FAw/
A Practical Guide to Coding With Python
www.udemy.com/share/1037IY/

Пікірлер: 44

  • @tahirhanif9669
    @tahirhanif96692 жыл бұрын

    Thank you for a great presentation

  • @nonemanful
    @nonemanful3 жыл бұрын

    This video really helped me in my MSc project thanks. That windows key and R shortcut for the path is soooooo useful. Keep up the good work Thanks

  • @101touchapps

    @101touchapps

    3 жыл бұрын

    I am super glad it was useful!

  • @neutral_8803
    @neutral_88033 жыл бұрын

    This was really well summed up, thanks

  • @101touchapps

    @101touchapps

    3 жыл бұрын

    ur welcome

  • @vitoalvarez5416
    @vitoalvarez5416 Жыл бұрын

    Thank you, your explanation was complete but straightforward c:

  • @101touchapps

    @101touchapps

    Жыл бұрын

    Glad it helped!

  • @shailesh1981able
    @shailesh1981able2 жыл бұрын

    Explicitly explained!!! Sir, can you please advise what to write at the below line of code, if i have all geo-coordinates of one courty (i.e. India)? I tried the below code but it's not working somehow. axis = world_data[world_data.continent=='india']

  • @minecraft-brickops
    @minecraft-brickops Жыл бұрын

    Your explanations are very useful.

  • @101touchapps

    @101touchapps

    Жыл бұрын

    Glad you think so!

  • @abiyedanagogo1577
    @abiyedanagogo15772 жыл бұрын

    Great video

  • @101touchapps

    @101touchapps

    2 жыл бұрын

    thanks man!

  • @User-op1be
    @User-op1be3 жыл бұрын

    Does this work on pycharm, with the modules installed ?? I am having trouble with this on pycharm right now

  • @tomzhang7152
    @tomzhang71522 жыл бұрын

    Hey !! awesome video!! thanks a lot bro !! I am just wondering is there any way for us to change the map projection of the final choropleth map?

  • @101touchapps

    @101touchapps

    2 жыл бұрын

    hello tom. sorry this is coming very late. yes you can change the projection to "orthographic" etc using plotly

  • @adrianmisak07
    @adrianmisak073 жыл бұрын

    at 8:44: what if we wanted each city in a different color? for example, if the dataframe had a column with city population, and we wanted to have cities with bigger populations in a darker color, and cities with less population in brighter color? thanks, great video

  • @Chazgd

    @Chazgd

    Жыл бұрын

    I've not tried it myself but in more standard matplotlib plots you can add another column which has the color for each row and pass that entire column into the color argument.

  • @thalesaragao8634
    @thalesaragao86342 жыл бұрын

    Hi! I could not find the csv file. where is it? Thanks!

  • @astro7060
    @astro70602 жыл бұрын

    im not getting the desired image, like the points are plotted at one corner and the country image is plotted on other corner, how can i solve this and get them into position, someone please help me.

  • @mikeholad
    @mikeholad Жыл бұрын

    Can this be applied too on google colab

  • @franklimmaciel
    @franklimmaciel2 жыл бұрын

    Thanks!

  • @101touchapps

    @101touchapps

    2 жыл бұрын

    No problem!

  • @maatouknadia4824
    @maatouknadia48242 жыл бұрын

    Hi, thank you for this intersting vedeo. Where can I find a geojson file for morocco including sahara? Thank a lot for your help

  • @101touchapps

    @101touchapps

    2 жыл бұрын

    hello Nadia. you can google search for free geojson files. there are quite free to get.

  • @yuhanwu2649
    @yuhanwu264910 ай бұрын

    thank uuu!

  • @101touchapps

    @101touchapps

    10 ай бұрын

    ur welcome

  • @mikeholad
    @mikeholad Жыл бұрын

    Instead of country map can it be applied to states map and local government area maps?

  • @101touchapps

    @101touchapps

    Жыл бұрын

    sure. it can. all you need are filters to point to your data

  • @perfecteer
    @perfecteer2 жыл бұрын

    Thank you

  • @101touchapps

    @101touchapps

    Жыл бұрын

    You're welcome

  • @carlotaabarzuacontreras7986
    @carlotaabarzuacontreras79862 жыл бұрын

  • @mikeholad
    @mikeholad Жыл бұрын

    Is there a way to contact you

  • @izzyfiction
    @izzyfiction7 ай бұрын

    how would I set the continent to display a map of the United Kingdom? (UK)

  • @101touchapps

    @101touchapps

    7 ай бұрын

    you could use a list to manually load the longitudes and latitudes. or use the country code in the api

  • @shanegrimes8367
    @shanegrimes83673 ай бұрын

    Can we draw a line connecting those dots?

  • @101touchapps

    @101touchapps

    2 ай бұрын

    yes we can. the lines can even have color, thickness etc

  • @armandosilvavelazquez4476
    @armandosilvavelazquez44762 жыл бұрын

    I could not isntall geopandas.

  • @nazeefkhan517
    @nazeefkhan5178 ай бұрын

    ModuleNotFoundError: No module named 'matplotlib.pylplot' What should I do to fix this?

  • @101touchapps

    @101touchapps

    8 ай бұрын

    hello. you can try typing "pip install matplot lib" in your command line. also installing pandas will usually come with the matplot lib library installed

  • @nazeefkhan517

    @nazeefkhan517

    8 ай бұрын

    Thanks I fixed.

  • @beeaeey
    @beeaeey3 жыл бұрын

    I tried to import geopandas but I couldn't, and this error has appeared ModuleNotFoundError: No module named 'geopandas'

  • @tomzhang7152

    @tomzhang7152

    2 жыл бұрын

    lol my error is no module named "plotly"

  • @tomzhang7152

    @tomzhang7152

    2 жыл бұрын

    hey I found out that it's related to your python environment. if you are using jupyter notebook, you could try the code "pip list". it will list all installed packages. if geopandas is not installed in this environment, just get it. I bet it will sort your issue.

  • @beeaeey

    @beeaeey

    2 жыл бұрын

    @@tomzhang7152 I’ll try this! Thanks for help