as_polars_series.default() used to call pl$Series(), but will be changed so that pl$Series() calls as_polars_series().
This will ensure that every object is properly converted to a Series with pl$Series().
Python's polars.Series.__init__() internally converts various objects into a Series through a large number of conditional branches. This update is very similar to that.
Related to #1012.
as_polars_series.default()
used to callpl$Series()
, but will be changed so thatpl$Series()
callsas_polars_series()
. This will ensure that every object is properly converted to a Series withpl$Series()
.Python's
polars.Series.__init__()
internally converts various objects into a Series through a large number of conditional branches. This update is very similar to that.