Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
16
def
_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_findall
Function · 0.90
test_split
Function · 0.90
test_split_more_than_one_char
Function · 0.90
test_split_more_regex_split
Function · 0.90
test_split_n
Function · 0.90
test_rsplit
Function · 0.90
test_rsplit_max_number
Function · 0.90
test_partition_series_more_than_one_char
Function · 0.90
test_partition_series_none
Function · 0.90
test_partition_series_not_split
Function · 0.90
test_partition_series_unicode
Function · 0.90
Calls
1
fillna
Method · 0.45
Tested by
11
test_findall
Function · 0.72
test_split
Function · 0.72
test_split_more_than_one_char
Function · 0.72
test_split_more_regex_split
Function · 0.72
test_split_n
Function · 0.72
test_rsplit
Function · 0.72
test_rsplit_max_number
Function · 0.72
test_partition_series_more_than_one_char
Function · 0.72
test_partition_series_none
Function · 0.72
test_partition_series_not_split
Function · 0.72
test_partition_series_unicode
Function · 0.72