polars.Series.append
-
Append a Series to this one.
The resulting series will consist of multiple chunks.
- Parameters:
-
- other
-
Series to append.
Warning
This method modifies the series in-place. The series is returned for convenience only.
See also
Examples
>>> a = pl.Series("a", [1, 2, 3]) >>> b = pl.Series("b", [4, 5]) >>> a.append(b) shape: (5,) Series: 'a' [i64] [ 1 2 3 4 5 ]The resulting series will consist of multiple chunks.
>>> a.n_chunks() 2
Series.append(
other: Series,
) → Self
© 2020 Ritchie Vink
© 2022 Polars contributors
Licensed under the MIT License.
https://docs.pola.rs/api/python/stable/reference/series/api/polars.Series.append.html