Skip to content

Commit

Permalink
Fix bug in converting a DH table with all columns of the same type (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpeters1208 authored Sep 28, 2023
1 parent 9e1e93a commit cca5058
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions py/server/deephaven/pandas.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit cca5058

Please sign in to comment.