-
-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError when writing to S3 with partition_cols #503
Comments
Can you please cross-post on pandas? fastparquet certainly does handle doing this, so apparently the call is being made incorrectly, but I'm not sure exactly how. (cc pandas-dev/pandas#33452 ) |
So pandas seems to assume that the first argument to the However, the write function in Ideally, I suppose pandas should pass an argument to |
I believe this should now be fixed in at least pandas master (but probably released too). |
@martindurant cool thanks, I will check and if its fixed I'll close the issue. |
The issue can be reproduced as follows:
When doing the same write operation, without the
partition_cols
argument, it works fine. The error stacktrace is the following:The code assumes the
path[0]
variable is a string, but it is an S3File object. For the S3File object, the path string can be accessed using.path
. Thus is should look as followspath[0].path[0]
.The package versions are:
The text was updated successfully, but these errors were encountered: