Spec-Zone.ru › Polars

polars.Expr.append

Expr.append(
    other: IntoExpr,
    *,
    upcast: bool = True,
) → Expr

Добавить выражения.

Это выполняется путем добавления чанков other к этому Series.

движок:В памяти
Параметры:
other

Выражение для добавления.

upcast

Привести оба Series к одному суперклассу типов.

Примеры

>>> df = pl.DataFrame(
...     {
...         "a": [8, 9, 10],
...         "b": [None, 4, 4],
...     }
... )
>>> df.select(pl.all().head(1).append(pl.all().tail(1)))
shape: (2, 2)
┌─────┬──────┐
│ a   ┆ b    │
│ --- ┆ ---  │
│ i64 ┆ i64  │
╞═════╪══════╡
│ 8   ┆ null │
│ 10  ┆ 4    │
└─────┴──────┘

© 2020 Ritchie Vink
© 2022 Polars contributors
Licensed under the MIT License.
https://docs.pola.rs/api/python/stable/reference/expressions/api/polars.Expr.append.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API