polars.Series.map.values#

Series.map.values() → Series[source]#

Get the values of every map as a List, in entry order.

engine:In MemoryStreamingDistributed
Returns:
Series

Series of data type List of the map’s value type.

Examples

>>> s = pl.Series(
...     [{"a": 1, "b": 2}, {}, None], dtype=pl.Map(pl.String, pl.Int64)
... )
>>> s.map.values()
shape: (3,)
Series: '' [list[i64]]
[
        [1, 2]
        []
        null
]