Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/pandas-dev/pandas
/ func
Function
func
pandas/tests/frame/methods/test_map.py:42–43 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
40
df = DataFrame(data={
"a"
: arr,
"b"
: sparse_arr})
41
42
def
func(x):
43
return
str.upper(x)
if
not pd.isna(x)
else
x
44
45
result = df.map(func, na_action=na_action)
46
Callers
5
test_comparisons
Method · 0.50
test_ufunc_passes_args
Function · 0.50
test_query_lex_compare_strings
Method · 0.50
test_any_all_np_func
Method · 0.50
test_iloc_setitem_ea_null_slice_length_one_list
Method · 0.50
Calls
2
upper
Method · 0.80
isna
Method · 0.45
Tested by
no test coverage detected