daf.typing.series¶
The types here describe a 1D pandas.Series
, which can be fetched from daf
.
Functions:
|
Check whether some |
|
Assert that some |
- daf.typing.series.is_series(data: Any, *, dtype: Optional[_dtypes.DTypes] = None, size: Optional[int] = None) TypeGuard[_fake_pandas.Series] [source]¶
Check whether some
data
is aSeries
, optionally only of somedtype
, optionally of somesize
.By default, checks that the data type is one of
ALL_DTYPES
.
- daf.typing.series.be_series(data: Any, *, dtype: Optional[Union[str, dtype, Collection[str], Collection[dtype], Collection[Union[str, dtype]]]] = None, size: Optional[int] = None) Series [source]¶
Assert that some
data
is aSeries
, optionally only of somedtype
, optionally of somesize
, and return it as such formypy
.By default, checks that the data type is one of
ALL_DTYPES
.