Skip to content

Commit c87f758

Browse files
committed
use a better variable name
1 parent 410ee0e commit c87f758

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/io/json/_json.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1168,7 +1168,7 @@ def _try_convert_data(
11681168
"""
11691169
Try to parse a Series into a column by inferring dtype.
11701170
"""
1171-
backup_data = data
1171+
org_data = data
11721172
# don't try to coerce, unless a force conversion
11731173
if use_dtypes:
11741174
if not self.dtype:
@@ -1223,7 +1223,7 @@ def _try_convert_data(
12231223
if len(data) and data.dtype in ("float", "object"):
12241224
# coerce ints if we can
12251225
try:
1226-
new_data = backup_data.astype("int64")
1226+
new_data = org_data.astype("int64")
12271227
if (new_data == data).all():
12281228
data = new_data
12291229
converted = True

0 commit comments

Comments
 (0)