[ Web Proxy ]
URL:
Viewing: https://dataframes.bigquery.dev/reference/api/bigframes.pandas.Index.nunique.html [Back]  [Original]

bigframes.pandas.Index.nunique — bigframes documentation
Back to top
Search the docs ...:

bigframes.pandas.Index.nunique#

Index.nunique() int[source]#

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
>>> int(s.nunique())
4
Returns:

Number of unique elements

Return type:

int


Web Proxy Viewer  |  New URL  |  Original Page