MCPcopy
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_findMethod · 0.80
__from_arrow__Method · 0.80
__init__Method · 0.80
_box_pa_scalarMethod · 0.80
_box_pa_arrayMethod · 0.80
_from_sequenceMethod · 0.80
astypeMethod · 0.80
_convert_int_resultMethod · 0.80
cast_for_truedivFunction · 0.80
floordiv_compatFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected