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
I use .to_json(orient='split') as a compact way to serialize and store dataframes, however, I loose index name on dump/load cycle. I would suggest adding "indexName" to json, which should be fairly backwards compatible.
This makes dataframe fully recoverable from json. Also, it's already specific since there is both columns and index, and anyone can ignore it, so don't see an issue here.
Code Sample, a copy-pastable example if possible
Problem description
I use
.to_json(orient='split')
as a compact way to serialize and store dataframes, however, I loose index name on dump/load cycle. I would suggest adding "indexName" to json, which should be fairly backwards compatible.Expected Output
Behavior should probably stay as it is when index name is
None
.Output of
pd.show_versions()
pandas: 0.20.3
pytest: 2.6.4
pip: 9.0.1
setuptools: 36.2.5
Cython: None
numpy: 1.13.1
scipy: 0.16.0
xarray: None
IPython: 5.4.1
sphinx: None
patsy: 0.4.1
dateutil: 2.6.1
pytz: 2017.2
blosc: None
bottleneck: None
tables: None
numexpr: 2.6.2
feather: None
matplotlib: None
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
sqlalchemy: None
pymysql: None
psycopg2: 2.6 (dt dec pq3 ext lo64)
jinja2: 2.7.3
s3fs: None
pandas_gbq: None
pandas_datareader: None
The text was updated successfully, but these errors were encountered: