We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 410ee0e commit c87f758Copy full SHA for c87f758
pandas/io/json/_json.py
@@ -1168,7 +1168,7 @@ def _try_convert_data(
1168
"""
1169
Try to parse a Series into a column by inferring dtype.
1170
1171
- backup_data = data
+ org_data = data
1172
# don't try to coerce, unless a force conversion
1173
if use_dtypes:
1174
if not self.dtype:
@@ -1223,7 +1223,7 @@ def _try_convert_data(
1223
if len(data) and data.dtype in ("float", "object"):
1224
# coerce ints if we can
1225
try:
1226
- new_data = backup_data.astype("int64")
+ new_data = org_data.astype("int64")
1227
if (new_data == data).all():
1228
data = new_data
1229
converted = True
0 commit comments