Run ❯
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
import pandas as pd data = [[5, 6, 7], [2, 6, 9]] df = pd.DataFrame(data) print(df.cov())
0 1 2 0 4.5 0.0 -3.0 1 0.0 0.0 0.0 2 -3.0 0.0 2.0