-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
HDFStore() create a new file by mode 'a' ,but file name can't be incorrect #16007
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
Comments
you would have to show more. This works on 0.19.2.
|
@jreback yes, there is no problem to open the file in python environment。go back to the file folder in the operation system, check the file name again ,you will find the problem. I upload a picture to show this problem . |
@imelee still not sure what is the problem. can you show a fully copy-pastable example. |
@jreback sorry for my terrible description.I made a notebook file that should be repeat the problem. hmm,i cant upload the .ipynb file ,so i copy them below. import pandas as pd b=pd.DataFrame(a,columns=['代码','日期','开盘','最高价','最低价','收盘价','涨幅','成交额','成交量']) |
I suppose this is related to: #15086 3.6 on windows changed the default encoding of file paths (to utf-8). Can you step thru and see what kind of path is actually being passed to the PyTables open file method. |
I think it is impossible job for me after i tried to do trace down the program.but i got some message that may be use for you .first of all: creat a new file in Jupyter Notebook,i got some hint below executed in 10.0s, finished 21:49:35 2017-04-21
ipdb> n |
It's not clear what this issue here was so closing for now |
Code Sample, a copy-pastable example if possible
with pd.HDFStore(r'e:\网易历史资金.h5') as f:
Problem description
all went on well before update,i got this problem after update python3.52 to python3.6 and conda update --all
Expected Output
the filename should be 网易历史资金.h5 but i got 缃戞槗鍘嗗彶璧勯噾.h5
Output of
pd.show_versions()
pandas: 0.19.2
nose: 1.3.7
pip: 9.0.1
setuptools: 27.2.0
Cython: 0.25.2
numpy: 1.12.1
scipy: 0.19.0
statsmodels: 0.8.0
xarray: None
IPython: 5.3.0
sphinx: 1.5.4
patsy: 0.4.1
dateutil: 2.6.0
pytz: 2017.2
blosc: None
bottleneck: 1.2.0
tables: 3.2.2
numexpr: 2.6.2
matplotlib: 2.0.0
openpyxl: 2.4.1
xlrd: 1.0.0
xlwt: 1.2.0
xlsxwriter: 0.9.6
lxml: 3.7.3
bs4: 4.5.3
html5lib: 0.999
httplib2: None
apiclient: None
sqlalchemy: 1.1.9
pymysql: None
psycopg2: None
jinja2: 2.9.6
boto: 2.46.1
pandas_datareader: None
The text was updated successfully, but these errors were encountered: