polars.Series.cleared#
- Series.cleared() polars.internals.series.Series #
Create an empty copy of the current Series, with identical name/dtype but no data.
See also
clone
Cheap deepcopy/clone.
Examples
>>> s = pl.Series("a", [None, True, False]) >>> s.cleared() shape: (0,) Series: 'a' [bool] [ ]