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

Method _empty

pandas/core/arrays/string_.py:809–812  ·  view source on GitHub ↗
(cls, shape, dtype)

Source from the content-addressed store, hash-verified

807
808 @classmethod
809 def _empty(cls, shape, dtype) -> StringArray:
810 values = np.empty(shape, dtype=object)
811 values[:] = dtype.na_value
812 return cls(values, dtype=dtype).astype(dtype, copy=False)
813
814 def __arrow_array__(self, type=None):
815 """

Callers 11

make_na_arrayFunction · 0.45
get_new_valuesMethod · 0.45
blk_funcMethod · 0.45
emptyMethod · 0.45
test_empty_dt64tzMethod · 0.45
test_empty_dt64Method · 0.45
test_empty_td64Method · 0.45
test_emptyMethod · 0.45
test_emptyMethod · 0.45

Calls 3

clsFunction · 0.85
emptyMethod · 0.45
astypeMethod · 0.45

Tested by 7

test_empty_dt64tzMethod · 0.36
test_empty_dt64Method · 0.36
test_empty_td64Method · 0.36
test_emptyMethod · 0.36
test_emptyMethod · 0.36