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

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

bigframes.pandas.DataFrame.nunique#

DataFrame.nunique() Series[source]#

Count number of distinct elements in each column.

Examples:

>>> df = bpd.DataFrame({"A": [3, 1, 2], "B": [1, 2, 2]})
>>> df
    A       B
0   3       1
1   1       2
2   2       2

[3 rows x 2 columns]
>>> df.nunique()
A    3
B    2
dtype: Int64
Returns:

Series with number of distinct elements.

Return type:

bigframes.pandas.Series


Web Proxy Viewer  |  New URL  |  Original Page