polars.Expr.append
-
Добавить выражения.
Это выполняется путем добавления чанков
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 │ └─────┴──────┘
Expr.append(
other: IntoExpr,
*,
upcast: bool = True,
) → Expr
© 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