bigframes.geopandas.GeoSeries.explode#

GeoSeries.explode(*, ignore_index: bool | None = False) Series#

Transform each element of a list-like to a row.

Examples:

>>> s = bpd.Series([[1, 2, 3], [], [3, 4]])
>>> s
0    [1 2 3]
1         []
2      [3 4]
dtype: list<item: int64>[pyarrow]
>>> s.explode()
0       1
0       2
0       3
1    <NA>
2       3
2       4
dtype: Int64
Parameters:

ignore_index (bool, default False) – If True, the resulting index will be labeled 0, 1, …, n - 1.

Returns:

Exploded lists to rows; index will be duplicated for these rows.

Return type:

bigframes.pandas.Series