Skip to content

Commit bfd6c07

Browse files
code sample for pandas-dev#38616
1 parent 3065ac5 commit bfd6c07

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

bisect/38616.py

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import pandas as pd
2+
3+
pd.__version__
4+
5+
left = pd.DataFrame({"x": [1, 1], "z": ["foo", "foo"]})
6+
right = pd.DataFrame({"x": [1, 1], "z": ["foo", "foo"]})
7+
8+
result = pd.merge(left, right, how="right", left_index=True, right_on="x")
9+
10+
print(result)

0 commit comments

Comments
 (0)