Skip to content

BUG: bug in json serialization when frame has mixed types #10306

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

Merged
merged 1 commit into from
Jun 7, 2015

Conversation

behzadnouri
Copy link
Contributor

closes #10289

on master:

>>> df
   1st  2nd  3rd  4th   5th
a   10    1  foo  0.1  0.01
b   20    2  bar  0.2  0.02
c   30    3  baz  0.3  0.03
d   40    4  qux  0.4  0.04

>>> read_json(df.to_json(orient='index'), orient='index', convert_axes=False)
   1st  2nd  3rd  4th   5th
a   40    4  qux  0.4  0.04

on branch:

>>> read_json(df.to_json(orient='index'), orient='index', convert_axes=False)
   1st  2nd  3rd  4th   5th
a   10    1  foo  0.1  0.01
b   20    2  bar  0.2  0.02
c   30    3  baz  0.3  0.03
d   40    4  qux  0.4  0.04

@jreback jreback added Bug IO JSON read_json, to_json, json_normalize labels Jun 7, 2015
@jreback jreback added this to the 0.16.2 milestone Jun 7, 2015
jreback added a commit that referenced this pull request Jun 7, 2015
BUG: bug in json serialization when frame has mixed types
@jreback jreback merged commit 03ccc34 into pandas-dev:master Jun 7, 2015
@jreback
Copy link
Contributor

jreback commented Jun 7, 2015

thanks you sir!

@behzadnouri behzadnouri deleted the json-mixed-type branch August 22, 2015 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug IO JSON read_json, to_json, json_normalize
Projects
None yet
Development

Successfully merging this pull request may close these issues.

mixed data type to_json(orient='index') repeats only the first index value
2 participants