We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85ca77c commit 7fbb2f9Copy full SHA for 7fbb2f9
bisect/39943.py
@@ -0,0 +1,13 @@
1
+# BUG: unary operators on IntegerArray return shared mask creating inconsistencies when assigning null and non-null values #39943
2
+
3
+import pandas as pd
4
+import pandas.testing as tm
5
6
+print(pd.__version__)
7
8
+s = pd.Series([1, 2, 3], dtype="Int64")
9
+s2 = -s
10
+expected = s2.copy()
11
+s[0] = None
12
+print(s2)
13
+tm.assert_series_equal(s2, expected)
0 commit comments