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
When trying to append to a file on GCS using pandas, the file was being overwritten. That is because GCS files are immutable. But there was no warning and it took a while to debug.
The mode = 'a' in pandas.to_csv is passed on to fsspec.open. It would be nice if we have a warning or error in this case.
See pandas-dev/pandas#51821
Append in GCS is possible, via compose (currently used by the merge() method), where we upload the extra data to some scratch file, and when close/committing, do a merge to rewrite the final destination. S3fs does something similar, except that in that case there is no need to write the new data to an actual key which then needs to be removed when done.
When trying to append to a file on GCS using pandas, the file was being overwritten. That is because GCS files are immutable. But there was no warning and it took a while to debug.
The
mode = 'a'
inpandas.to_csv
is passed on tofsspec.open
. It would be nice if we have a warning or error in this case.See pandas-dev/pandas#51821
The text was updated successfully, but these errors were encountered: