File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -849,14 +849,15 @@ def test_matmul(self):
849
849
expected = np .dot (a .values , a .values )
850
850
assert_almost_equal (result , expected )
851
851
852
- # np.array @ Series (__rmatmul__)
853
- result = operator .matmul (a .values , a )
852
+ # GH 21530
853
+ # vector (list) @ Series (__rmatmul__)
854
+ result = operator .matmul (a .values .tolist (), a )
854
855
expected = np .dot (a .values , a .values )
855
856
assert_almost_equal (result , expected )
856
857
857
858
# GH 21530
858
- # np.array (matrix ) @ Series (__rmatmul__)
859
- result = operator .matmul (b .T .values , a )
859
+ # matrix (nested lists ) @ Series (__rmatmul__)
860
+ result = operator .matmul (b .T .values . tolist () , a )
860
861
expected = np .dot (b .T .values , a .values )
861
862
assert_almost_equal (result , expected )
862
863
You can’t perform that action at this time.
0 commit comments