Skip to content

Commit b61511b

Browse files
add code sample for pandas-dev#40073
1 parent b60bc69 commit b61511b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

bisect/40073.py

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import pandas as pd
2+
3+
print(pd.__version__)
4+
d1 = pd.DataFrame([("a",)], columns=["id"], dtype="string")
5+
d2 = pd.DataFrame([("b",)], columns=["id"], dtype="string")
6+
result = d1.merge(d2, on="id", how="right")
7+
dtype = result.dtypes["id"]
8+
print(dtype)
9+
assert isinstance(dtype, pd.StringDtype)

0 commit comments

Comments
 (0)