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 c4b4a81 commit 7c30ef1Copy full SHA for 7c30ef1
pandas/tests/indexing/test_loc.py
@@ -427,6 +427,13 @@ def test_loc_setitem_consistency(self):
427
expected = DataFrame({'date': Series(['string'])})
428
tm.assert_frame_equal(df, expected)
429
430
+ # GH 9336
431
+ expected = DataFrame({'date': [1, 'a', 'b']})
432
+ df = DataFrame({'date': Series(pd.NaT, range(3))})
433
+ df.loc[0, 'date'] = 1
434
+ df.loc[1:2, 'date'] = 'a', 'b'
435
+ tm.assert_frame_equal(df, expected)
436
+
437
def test_loc_setitem_consistency_empty(self):
438
# empty (essentially noops)
439
expected = DataFrame(columns=['x', 'y'])
0 commit comments