bigframes.geopandas.GeoSeries.nunique#

GeoSeries.nunique() int#

Return number of unique elements in the object.

Excludes NA values by default.

Examples:

>>> s = bpd.Series([1, 3, 5, 7, 7])
>>> s
0    1
1    3
2    5
3    7
4    7
dtype: Int64
>>> s.nunique()
np.int64(4)
Returns:

number of unique elements in the object.

Return type:

int