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
pandas breaks at df = pd.read_pickle(path). It seems to me that this should have been solved along with issue #11033, but it evidently doesn't work for my setup.
I encountered the same issue with pd.DataFrame.to_pickle.
The usecase appears to be related to open issue #14705 and closed pull request #12930.
Expected Output
I would expect the pandas.read_* functions and pandas.DataFrame.to_* methods to recognise pathlib objects, and handle the conversion str(path) under the hood.
this should simply use pandas.io.common._get_handle which will then facilitate both of these requests (pathlib and compression) as that now is our generic handler.
pandas.io.common._get_handle does not support pathlib.Path with python 3.5.2, but it seems that the open call supports it in 3.6. get_filepath_or_buffer, however, seems to handle it well. So, what did you mean with
this should simply use pandas.io.common._get_handle
Code Sample
Problem description
pandas
breaks atdf = pd.read_pickle(path)
. It seems to me that this should have been solved along with issue #11033, but it evidently doesn't work for my setup.I encountered the same issue with
pd.DataFrame.to_pickle
.The usecase appears to be related to open issue #14705 and closed pull request #12930.
Expected Output
I would expect the
pandas.read_*
functions andpandas.DataFrame.to_*
methods to recognisepathlib
objects, and handle the conversionstr(path)
under the hood.Output of
pd.show_versions()
pandas: 0.19.1
nose: 1.3.7
pip: 9.0.1
setuptools: 27.2.0
Cython: 0.25.1
numpy: 1.11.2
scipy: 0.18.1
statsmodels: 0.6.1
xarray: None
IPython: 5.1.0
sphinx: 1.4.8
patsy: 0.4.1
dateutil: 2.6.0
pytz: 2016.7
blosc: None
bottleneck: 1.1.0
tables: 3.3.0
numexpr: 2.6.1
matplotlib: 1.5.3
openpyxl: 2.4.0
xlrd: 1.0.0
xlwt: 1.1.2
xlsxwriter: 0.9.3
lxml: 3.6.4
bs4: 4.5.1
html5lib: None
httplib2: 0.9.2
apiclient: 1.5.1
sqlalchemy: 1.1.3
pymysql: None
psycopg2: None
jinja2: 2.8
boto: 2.43.0
pandas_datareader: None
The text was updated successfully, but these errors were encountered: