Convert a pandas dataframe to a geodataframe

المشرف العام

Administrator
طاقم الإدارة
This seems like a simple enough question, but I can't figure out how to convert a pandas DataFrame to a GeoDataFrame for a spatial join.

Here is an example of what my data looks like using df.head():

Date/Time Lat Lon ID 0 4/1/2014 0:11:00 40.7690 -73.9549 140 1 4/1/2014 0:17:00 40.7267 -74.0345 NaN In fact, this dataframe was created from a CSV so if it's easier to read the CSV in directly as a GeoDataFrame that's fine too. Thanks!



أكثر...
 
أعلى