You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I was trying to reproduce the issue with some generated data but i could not. Maybe am I missing something?
# make some dataimportosimportpandasaspdimportnumpyasnpmake_data=Truelat_lon_size=100000csvs_num=10ifmake_data:
#first make some datanp.random.seed(1234)
#lat=np.random.random(lat_lon_size)*(10) -37lon=np.random.random(lat_lon_size)*(10) -64#df_=pd.DataFrame({'id':1,'Latitude':lat,'Longitude':lon})
# dump diros.makedirs('./csv',exist_ok=True)
fori,finenumerate(np.random.random(csvs_num)):
df_.sample(frac=f).to_csv('./csv/test_{}.csv'.format(str(i)),index=False)
### Issue code importdask.dataframeasddimportdask_geopandas# from issue just replace *_timeseries.csv' by test_*.csvdf=dd.read_csv('csv/test_*.csv')
gdf=dask_geopandas.from_dask_dataframe(df)
gdf=gdf.set_geometry(
dask_geopandas.points_from_xy(gdf, x='Longitude', y='Latitude')
).set_crs('epsg:4326').to_crs('epsg:3395')
#gdf.compute()
Sorry for the delay. The snippet you provided indeed works on my machine. Now my code works fine on the latest version of dask-geopandas. Maybe the mistake was on my side in the first place or the latest version fixed the issue. Anyway thank you very much!
I have multiple CSV files opened with
dask
as is:When invoking
gdf.compute()
, the following exception is raised:The exception disapears when
df
if a single csv filedf = dd.read_csv('csv/2019_timeseries.csv')
The text was updated successfully, but these errors were encountered: