Reputation: 485
I have twitter datasets out of which have very few have geo-location tags (lat,long). I would like to find or estimate the locations of tweets as much as possible. So, I am just wondering, how can I do this using python? Any example!
So far, I have written the following codes:
import geopandas as gpd
from shapely.geometry import Point
gdf=gpd.GeoDataFrame(df2,crs=4326,geometry=gpd.points_from_xy(df2["long"],df2["lat"]))
gdf=gdf.drop(["lat","text","lang"],axis=1)
These codes showing the coordinates of those tweets that are already there but does not showing missing locations of tweets.
Upvotes: 0
Views: 304