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

Method _from_sequence

pandas/core/arrays/masked.py:160–162  ·  view source on GitHub ↗
(cls, scalars, *, dtype=None, copy: bool = False)

Source from the content-addressed store, hash-verified

158
159 @classmethod
160 def _from_sequence(cls, scalars, *, dtype=None, copy: bool = False) -> Self:
161 values, mask = cls._coerce_to_array(scalars, dtype=dtype, copy=copy)
162 return cls(values, mask)
163
164 def _cast_pointwise_result(self, values) -> ArrayLike:
165 if isna(values).all():

Callers 2

astypeMethod · 0.45

Calls 2

clsFunction · 0.85
_coerce_to_arrayMethod · 0.45

Tested by

no test coverage detected