Skip to content

Commit

Permalink
coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoGorelli committed Oct 25, 2024
1 parent f968311 commit a2d0c53
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion narwhals/_pandas_like/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,11 +297,13 @@ def native_to_narwhals_dtype(
)
except Exception: # noqa: BLE001, S110
pass
else: # pragma: no cover
pass
if implementation is Implementation.DASK:
# Dask columns are lazy, so we can't inspect values.
# The most useful assumption is probably String
return dtypes.String()
if implementation is Implementation.PANDAS:
if implementation is Implementation.PANDAS: # pragma: no cover
# Old versions of pandas pre-dataframe-interchange-protocol
import pandas as pd # ignore-banned-import

Expand Down

0 comments on commit a2d0c53

Please sign in to comment.