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
BUG: SpooledTemporaryFile no longer working with read_csv #43439
Comments
It fails at Line 726 in 73c473d
with AttributeError: 'SpooledTemporaryFile' object has no attribute 'readable'
|
In 1.1 In 1.3
If edit: it might be easier to skip the text-wrapping if the object doesn't have the "readable" attribute (hoping that doesn't break other objects) or simply put the |
Sorry, I should have added some more details. Thanks for clarifying this. To me it seems like the pandas/pandas/io/parsers/base_parser.py Line 224 in 73c473d
is_text argument. Line 522 in 73c473d
According to the docs
|
To fix the 1.3 release, we probably can't introduce new keyword arguments - using a |
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
I have confirmed this bug exists on the master branch of pandas.
Reproducible Example
Issue Description
This worked in pandas 1.1.5 but is no longer working in version >=1.2.0.
Expected Behavior
According to the
read_csv
description I would expect this to work.filepath_or_bufferstr, path object or file-like object
Installed Versions
pandas : 1.3.2
numpy : 1.21.2
pytz : 2021.1
dateutil : 2.8.2
pip : 20.1.1
setuptools : 47.1.0
IPython : 7.27.0
The text was updated successfully, but these errors were encountered: