Skip to content

Commit 799d9ca

Browse files
authored
Fix typo: misleading variable name
1 parent c35c86d commit 799d9ca

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pandas/tests/dtypes/test_inference.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1399,11 +1399,11 @@ def test_infer_dtype_period_with_na(self, na_value):
13991399
@pytest.mark.parametrize("na_value", [pd.NA, np.nan])
14001400
def test_infer_dtype_numeric_with_na(self, na_value):
14011401
# GH61621
1402-
arr = Series([1, 2, na_value], dtype=object)
1403-
assert lib.infer_dtype(arr, skipna=True) == "integer"
1402+
ser = Series([1, 2, na_value], dtype=object)
1403+
assert lib.infer_dtype(ser, skipna=True) == "integer"
14041404

1405-
arr = Series([1.0, 2.0, na_value], dtype=object)
1406-
assert lib.infer_dtype(arr, skipna=True) == "floating"
1405+
ser = Series([1.0, 2.0, na_value], dtype=object)
1406+
assert lib.infer_dtype(ser, skipna=True) == "floating"
14071407

14081408
def test_infer_dtype_all_nan_nat_like(self):
14091409
arr = np.array([np.nan, np.nan])

0 commit comments

Comments
 (0)