Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/pandas-dev/pandas
/ cast
Method
cast
pandas/tests/frame/test_stack_unstack.py:846–848 ·
view source on GitHub ↗
(val)
Source
from the content-addressed store, hash-verified
844
def
test_unstack_nan_index1(self, idx, lev):
845
# GH7466
846
def
cast(val):
847
val_str =
""
if
val != val
else
val
848
return
f
"{val_str:1}"
849
850
df = DataFrame(
851
{
Callers
15
__from_arrow__
Method · 0.80
_str_find
Method · 0.80
__from_arrow__
Method · 0.80
__init__
Method · 0.80
_box_pa_scalar
Method · 0.80
_box_pa_array
Method · 0.80
_from_sequence
Method · 0.80
astype
Method · 0.80
_convert_int_result
Method · 0.80
cast_for_truediv
Function · 0.80
floordiv_compat
Function · 0.80
_from_sequence_of_strings
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected