Skip to content

Commit 6dcb615

Browse files
committed
BUG: Join with a list of a single element behaves as a join with a single element (pandas-dev#57676)
1 parent 0f7ded2 commit 6dcb615

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pandas/core/frame.py

+3
Original file line numberDiff line numberDiff line change
@@ -10560,6 +10560,9 @@ def join(
1056010560
from pandas.core.reshape.concat import concat
1056110561
from pandas.core.reshape.merge import merge
1056210562

10563+
if isinstance(other, list) and len(other) == 1:
10564+
other = other[0]
10565+
1056310566
if isinstance(other, Series):
1056410567
if other.name is None:
1056510568
raise ValueError("Other Series must have a name")

0 commit comments

Comments
 (0)