Skip to content
Prev Previous commit
Fix typo: misleading variable name
  • Loading branch information
heoh authored Jul 11, 2025
commit 799d9ca3fdc10d1b968c11dbbd99c0bdaf440e71
8 changes: 4 additions & 4 deletions pandas/tests/dtypes/test_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -1399,11 +1399,11 @@ def test_infer_dtype_period_with_na(self, na_value):
@pytest.mark.parametrize("na_value", [pd.NA, np.nan])
def test_infer_dtype_numeric_with_na(self, na_value):
# GH61621
arr = Series([1, 2, na_value], dtype=object)
assert lib.infer_dtype(arr, skipna=True) == "integer"
ser = Series([1, 2, na_value], dtype=object)
assert lib.infer_dtype(ser, skipna=True) == "integer"

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

def test_infer_dtype_all_nan_nat_like(self):
arr = np.array([np.nan, np.nan])
Expand Down
Loading