File tree Expand file tree Collapse file tree 1 file changed +1
-15
lines changed
Expand file tree Collapse file tree 1 file changed +1
-15
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments