We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14d2735 commit 1b803cdCopy full SHA for 1b803cd
bisect/37629.py
@@ -0,0 +1,9 @@
1
+import pandas as pd
2
+
3
+print(pd.__version__)
4
5
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