Skip to content

Commit

Permalink
Only check Pandas version when 'pyarrow' is used (deephaven#5312)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmao-denver committed Apr 1, 2024
1 parent 4c62f19 commit 1afec4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/server/deephaven/pandas.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def to_pandas(table: Table, cols: List[str] = None,
DHError
"""
try:
if dtype_backend is not None and not _is_dtype_backend_supported:
if dtype_backend == "pyarrow" and not _is_dtype_backend_supported:
raise DHError(message=f"the dtype_backend ({dtype_backend}) option is only available for pandas 2.0.0 and "
f"above. {pd.__version__} is being used.")

Expand Down

0 comments on commit 1afec4b

Please sign in to comment.