Skip to content

Commit 70a0429

Browse files
authored
Update json.py
BUG : read_json with table='orient' causes unexpected type coercion pandas-dev#21345
1 parent 415012f commit 70a0429

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/io/json/json.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ def _try_convert_data(self, name, data, use_dtypes=True,
711711

712712
# coerce ints if we can
713713
try:
714-
new_data = data.astype('int64')
714+
new_data = data.astype('float64')
715715
if (new_data == data).all():
716716
data = new_data
717717
result = True

0 commit comments

Comments
 (0)