You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(Throwing an exception on the line where bar is created is also possibly acceptable, although confusing.)
Produced Output
c d
b a
2 1 3 NaN
Problem description
When joining with a data frame with a MultiIndex with a single level in it, left joins seem to not work properly. This behavior is confusing (why would a MultiIndex with a single index not work?), and is inconsistent with similar code which produces expected output.
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
(optional) I have confirmed this bug exists on the master branch of pandas.
Code Sample, a copy-pastable example
Expected Output
(Throwing an exception on the line where
bar
is created is also possibly acceptable, although confusing.)Produced Output
Problem description
When joining with a data frame with a MultiIndex with a single level in it, left joins seem to not work properly. This behavior is confusing (why would a MultiIndex with a single index not work?), and is inconsistent with similar code which produces expected output.
Possibly related issues: #34292, #29252, #34357
Examples of similar code with expected behavior
Example 1:
produces
Example 2:
produces
Output of
pd.show_versions()
The text was updated successfully, but these errors were encountered: