Skip to content

Commit 46444c1

Browse files
committed
Remove duplicate conversation
1 parent 6895def commit 46444c1

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

bigframes/display/anywidget.py

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -74,21 +74,7 @@ def __init__(self, dataframe: bigframes.dataframe.DataFrame):
7474
"Please `pip install anywidget traitlets` or `pip install 'bigframes[anywidget]'` to use TableWidget."
7575
)
7676

77-
super().__init__()
78-
# Workaround for Arrow bug https://github.com/apache/arrow/issues/45262
79-
# JSON columns are not supported in `to_pandas_batches` and will be converted to string.
80-
json_cols = [
81-
col
82-
for col, dtype in dataframe.dtypes.items()
83-
if dtype == bigframes.dtypes.JSON_DTYPE
84-
]
85-
if json_cols:
86-
df_copy = dataframe.copy()
87-
for col in json_cols:
88-
df_copy[str(col)] = df_copy[str(col)].astype("string")
89-
self._dataframe = df_copy
90-
else:
91-
self._dataframe = dataframe
77+
self._dataframe = dataframe
9278

9379
super().__init__()
9480

0 commit comments

Comments
 (0)