bigframes.pandas.api.typing.SeriesGroupBy.value_counts#

SeriesGroupBy.value_counts(normalize: bool = False, sort: bool = True, ascending: bool = False, dropna: bool = True) DataFrame | Series[source]#

Return a Series or DataFrame containing counts of unique rows.

Parameters:
  • normalize (bool, default False) – Return proportions rather than frequencies.

  • sort (bool, default True) – Sort by frequencies.

  • ascending (bool, default False) – Sort in ascending order.

  • dropna (bool, default True) – Don’t include counts of rows that contain NA values.

Returns:

Series if the groupby as_index is True, otherwise DataFrame.

Return type:

Series or DataFrame