MCPcopy
hub / github.com/pandas-dev/pandas / _convert_na_value

Function _convert_na_value

pandas/tests/strings/__init__.py:16–23  ·  view source on GitHub ↗
(ser, expected)

Source from the content-addressed store, hash-verified

14
15
16def _convert_na_value(ser, expected):
17 if ser.dtype != object:
18 if ser.dtype.na_value is np.nan:
19 expected = expected.fillna(np.nan)
20 else:
21 # GH#18463
22 expected = expected.fillna(pd.NA)
23 return expected

Callers 11

test_findallFunction · 0.90
test_splitFunction · 0.90
test_split_nFunction · 0.90
test_rsplitFunction · 0.90
test_rsplit_max_numberFunction · 0.90

Calls 1

fillnaMethod · 0.45

Tested by 11

test_findallFunction · 0.72
test_splitFunction · 0.72
test_split_nFunction · 0.72
test_rsplitFunction · 0.72
test_rsplit_max_numberFunction · 0.72