Recombining Data/Building Choropleths from Spatial Joins (geopandas)

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 ธ.ค. 2024
  • Recombining Data/Building Choropleths from Spatial Joins (geopandas)

ความคิดเห็น • 14

  • @alex_df
    @alex_df หลายเดือนก่อน

    Thank you so much for this playlist! Went through all of it today and learned a lot. I am very experienced in Pandas and there's something I would like to simplify in your process for any new learners here:
    After you perform your spatial join (I've changed some variables names here)
    ```
    states_power = gpd.sjoin(states, powerplants, how='inner', predicate='contains')
    ```
    You can easily map the powerplant count by converting that count into a dictionary and then mapping it to the desired dataframe using the `map` function of geopandas (also in regular pandas):
    ```
    # convert count to dictionary
    state_map = states_power.name.value_counts().to_dict()
    # map powerplant count to states
    states['count'] = states.name.map(state_map)
    ```
    And just like that! For instances that do not have a match, it will have a NaN count.
    I know this an old video, but I hope this helps!

  • @SuperArticwolf
    @SuperArticwolf 4 หลายเดือนก่อน

    Went through complete series. Great practical series, with useful examples and informative Videos. Kindly Continue making such videos.

  • @fanyang7
    @fanyang7 4 ปีที่แล้ว +4

    You are such an amazing teacher. The series is so well organized and you really know how to explain and clarify the main points. Thank you so much for making the videos.

  • @DC-rr5uz
    @DC-rr5uz 4 ปีที่แล้ว +1

    I learn so much from your videos. I watched several tutorials, but yours taught me the most. Thank you so much!!

  • @carloscampo8667
    @carloscampo8667 3 ปีที่แล้ว +1

    Make it a full course and upload it to Udemy or edx for a small fee. This is clear and to the point. Good job.

  • @YasithaThilakaratne
    @YasithaThilakaratne ปีที่แล้ว

    Great tutorial. Up to the point!

  • @shanefan8955
    @shanefan8955 3 ปีที่แล้ว

    fantastic video, super detailed with every possible explain. Really learned a lot, thx!!!!!

  • @crtnnn
    @crtnnn ปีที่แล้ว

    Amazing. I do my PhD in hydrogeology and I strongly focus on GIS (so I guess 'slightly' different from your spec) but I found your channel looking for geopandas tutorials. Very helpful! I hope you will do more geopandas/pandas videos...

  • @tankstocks
    @tankstocks 4 ปีที่แล้ว +1

    loved this series! please make more series on various topics

  • @zakariaabderrahmanesadelao3048
    @zakariaabderrahmanesadelao3048 5 ปีที่แล้ว +2

    thank you for the amazing tutorial series. looking forward for more, where do you publish your tutorials?

    • @jsoma
      @jsoma  5 ปีที่แล้ว

      Glad you enjoyed it! I have content mostly here and sometimes at littlecolumns.com. I'll be posting a big new secret project in a few weeks that I'll email out about from tinyletter.com/jsoma

  • @mohammedsameeruddin5920
    @mohammedsameeruddin5920 4 ปีที่แล้ว

    Please. We do not want to stop till choropleths and joins. We want to learn more of it. Thank you for this amazing series.

  • @tawkirahmed2095
    @tawkirahmed2095 4 ปีที่แล้ว +1

    Thanks for your tutorial but how i joint shp and csv file in python and make Choropleths?

  • @nizarSa
    @nizarSa ปีที่แล้ว

    Just thank you