1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
U
®ý°dº
ã@sFddlZddlZddlZddlmZmZddlmZ    Gdd„dƒZ
dS)éN)Ú    DataFrameÚSeriesc@seZdZdd„ZdS)Ú
TestMatmulc    Cs†ttj d¡ddddgd}ttj dd¡dd    d
gddddgd j}t ||¡}tt |j    |j    ¡dd    d
gd}t
  ||¡t |j|¡}tt |jj    |jj    ¡dd    d
gd}t
  ||¡t ||¡}t |j    |j    ¡}t
  ||¡t |j    |¡}t |j    |j    ¡}t
  ||¡t |j      ¡|¡}t |j    |j    ¡}t
  ||¡t |jj    |¡}t |jj    |j    ¡}t
  ||¡t |jj      ¡|¡}t |jj    |j    ¡}t
  ||¡t|jƒ|d<t |j|¡}tt |jj    |jj    ¡dd    d
gd}t
  ||¡| t¡}t |j|¡}tt |jj    |jj    ¡dd    d
gd}t
  ||¡d }tjt|d | |j    dd…¡W5QRXd}tjt|d | |j¡W5QRXdS)NéÚpÚqÚrÚs)ÚindexéÚ1Ú2Ú3)r
Úcolumnsz,Dot product shape mismatch, \(4,\) vs \(3,\))Úmatchzmatrices are not aligned)rÚnpÚrandomZrandnrÚTÚoperatorÚmatmulÚdotÚvaluesÚtmZassert_series_equalZassert_almost_equalÚtolistÚintrZastypeÚpytestZraisesÚ    ExceptionÚ
ValueError)ÚselfÚaÚbÚresultÚexpectedÚmsg©r$ú^d:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\pandas/tests/series/methods/test_matmul.pyÚ test_matmulsR 
ÿ  "       " 
" zTestMatmul.test_matmulN)Ú__name__Ú
__module__Ú __qualname__r&r$r$r$r%r sr) rÚnumpyrrZpandasrrZpandas._testingZ_testingrrr$r$r$r%Ú<module>s