Skip to content

Commit

Permalink
Update json.py
Browse files Browse the repository at this point in the history
BUG : read_json with table='orient' causes unexpected type coercion pandas-dev#21345
  • Loading branch information
uds5501 authored Jun 10, 2018
1 parent 415012f commit 70a0429
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandas/io/json/json.py
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ def _try_convert_data(self, name, data, use_dtypes=True,

# coerce ints if we can
try:
new_data = data.astype('int64')
new_data = data.astype('float64')
if (new_data == data).all():
data = new_data
result = True
Expand Down

0 comments on commit 70a0429

Please sign in to comment.