Skip to content

Commit ee0ee0f

Browse files
committed
fix: disable nunique aggregation for Struct types in describe()
1 parent c46021d commit ee0ee0f

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

bigframes/pandas/core/methods/describe.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
import typing
1818

1919
import pandas as pd
20-
import pyarrow as pa
2120

2221
from bigframes import dataframe, dtypes, series
2322
from bigframes.core import agg_expressions, blocks
@@ -122,11 +121,6 @@ def _get_aggs_for_dtype(dtype) -> list[aggregations.UnaryAggregateOp]:
122121
dtypes.is_string_like(dtype)
123122
or dtypes.is_binary_like(dtype)
124123
or dtypes.is_time_like(dtype)
125-
or (
126-
isinstance(dtype, pd.ArrowDtype)
127-
and pa.types.is_struct(dtype.pyarrow_dtype)
128-
and not dtypes.contains_db_dtypes_json_dtype(dtype)
129-
)
130124
):
131125
return [aggregations.count_op, aggregations.nunique_op]
132126
else:

0 commit comments

Comments
 (0)