Skip to content

Commit

Permalink
fix: (#930)
Browse files Browse the repository at this point in the history
fix join when using string literals
  • Loading branch information
MarcoGorelli authored Sep 9, 2024
1 parent e7b3b83 commit 767fbfb
Show file tree
Hide file tree
Showing 2 changed files with 191 additions and 96 deletions.
4 changes: 4 additions & 0 deletions narwhals/_pandas_like/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,10 @@ def join(
left_on: str | list[str] | None,
right_on: str | list[str] | None,
) -> Self:
if isinstance(left_on, str):
left_on = [left_on]
if isinstance(right_on, str):
right_on = [right_on]
if how == "cross":
if (
self._implementation is Implementation.MODIN
Expand Down
Loading

0 comments on commit 767fbfb

Please sign in to comment.