Skip to content

Commit 1b803cd

Browse files
code sample for pandas-dev#37629
1 parent 14d2735 commit 1b803cd

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

bisect/37629.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+
5+
import pandas as pd
6+
7+
d = pd.DataFrame({"a": [1, 1, 2, 1], "b": [(1, 1, 0)] * 4})
8+
d.loc[d["a"] == 1, "b"] = [[(0, 0, 1)]]
9+
print(d)

0 commit comments

Comments
 (0)