daf.typing.series

The types here describe a 1D pandas.Series, which can be fetched from daf.

Functions:

is_series(data, *[, dtype, size])

Check whether some data is a Series, optionally only of some dtype, optionally of some size.

be_series(data, *[, dtype, size])

Assert that some data is a Series, optionally only of some dtype, optionally of some size, and return it as such for mypy.

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 a Series, optionally only of some dtype, optionally of some size.

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 a Series, optionally only of some dtype, optionally of some size, and return it as such for mypy.

By default, checks that the data type is one of ALL_DTYPES.