Skip to content

Commit

Permalink
Use ._implementation
Browse files Browse the repository at this point in the history
Co-authored-by: Francesco Bruzzesi <42817048+FBruzzesi@users.noreply.github.com>
  • Loading branch information
schloerke and FBruzzesi authored Oct 16, 2024
1 parent 8ea551a commit feba6ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion narwhals/_pandas_like/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ def rows(
) -> list[tuple[Any, ...]] | list[dict[str, Any]]:
if not named:
# cuDF does not support itertuples. But it does support to_dict!
if is_cudf_dataframe(self._native_frame):
if self._implementation is Implementation.CUDF: # pragma: no cover
# Extract the row values from the named rows
return [tuple(row.values()) for row in self.rows(named=True)]

Expand Down

0 comments on commit feba6ce

Please sign in to comment.