There was an error while loading. Please reload this page.
1 parent 732d8d3 commit ccfc283Copy full SHA for ccfc283
pandas/tests/frame/indexing/test_setitem.py
@@ -689,7 +689,8 @@ def test_2d_array(self):
689
a = np.ones((10, 1))
690
df = DataFrame(index=np.arange(10))
691
df["np-array"] = a
692
- df["np-matrix"] = np.matrix(a)
+ with tm.assert_produces_warning(PendingDeprecationWarning):
693
+ df["np-matrix"] = np.matrix(a)
694
695
tm.assert_frame_equal(df, expected)
696
0 commit comments