bach.SeriesString.to_json_array

to_json_array

(partition=None)

[source]

Aggregate function: Group the values of this Series into a json array

The order of the values in the array will be based of the order of the values in this Series. If this Series does not have a deterministic sorting, then the values are additionally sorted by the values themselves. Null values will always be sorted last when aggregating all values, following default sorting behavior for DataFrame/Series.

Parameters

partition (Optional[Union[GroupBy, DataFrame]]) – The partition to apply, optional.

Returns

SeriesJson containing an array of strings on each row.

Return type

SeriesJson