I am currently working on New York Taxi trip duration EDA assignment.
I was trying to plot the data points provided onto a map of New York city.
I am using geopandas library. Here is the code for same.
geo_df = gpd.GeoDataFrame(df, crs = {‘init’: “EPSG:4326”},
geometry = [Point(xy) for xy in (df[‘pickup_longitude’], df[‘pickup_latitude’])])
It is giving me the following error :
Please let me know how it can be resolved.
1 post - 1 participant