We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc122a5 commit 9a19966Copy full SHA for 9a19966
bigframes/display/_flatten.py
@@ -422,7 +422,9 @@ def _explode_array_columns(
422
423
new_columns[col_name] = final_values
424
425
- result_df = pa.Table.from_pydict(new_columns).to_pandas()
+ # Convert back to pandas; this is efficient since we have pyarrow arrays.
426
+ result_table = pa.Table.from_pydict(new_columns)
427
+ result_df = result_table.to_pandas(types_mapper=pd.ArrowDtype)
428
429
grouping_col_name = (
430
"_original_index" if original_index_name is None else original_index_name
0 commit comments