Brian Brian - 10 months ago 60
Python Question

matrix math using pandas

I have a

that I'd like to perform matrix multiplication with. Can pandas do that?

import pandas as pd
import numpy as np

df = pd.DataFrame(np.random.rand(5, 5))

I don't want to have to do this:


pandas DataFrame's also have a dot method.

Just do this: