We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25749d2 commit f042800Copy full SHA for f042800
pandas/tests/dtypes/test_dtypes.py
@@ -1140,3 +1140,15 @@ def test_compare_complex_dtypes():
1140
1141
with pytest.raises(TypeError, match=msg):
1142
df.lt(df.astype(object))
1143
+
1144
1145
+def test_multi_column_dtype_assignment():
1146
+ # GH #27583
1147
+ df = pd.DataFrame({"a": [0.0], "b": 0.0})
1148
+ expected = pd.DataFrame({"a": [0], "b": 0})
1149
1150
+ df[["a", "b"]] = 0
1151
+ tm.assert_frame_equal(df, expected)
1152
1153
+ df["b"] = 0
1154
0 commit comments