From cca505872f0768200fde45157315aa6d404e8483 Mon Sep 17 00:00:00 2001 From: Alex Peters <80283343+alexpeters1208@users.noreply.github.com> Date: Thu, 28 Sep 2023 13:26:14 -0500 Subject: [PATCH] Fix bug in converting a DH table with all columns of the same type (#4566) --- py/server/deephaven/pandas.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/py/server/deephaven/pandas.py b/py/server/deephaven/pandas.py index bfe7001f2ab..5181428fa9c 100644 --- a/py/server/deephaven/pandas.py +++ b/py/server/deephaven/pandas.py @@ -170,13 +170,7 @@ def to_pandas(table: Table, cols: List[str] = None, dtype_backend: str = None, c series = _column_to_series(table, col_def_dict[col], conv_null) data[col] = series - dtype_set = set([v.dtype for k, v in data.items()]) - if len(dtype_set) == 1: - return pd.DataFrame(data=np.stack([v.array for k, v in data.items()], axis=1), - columns=cols, - copy=False) - else: - return pd.DataFrame(data=data, columns=cols, copy=False) + return pd.DataFrame(data=data, columns=cols, copy=False) except DHError: raise except Exception as e: