In [2]:
import pandas as pd
import numpy as np
from pandas import DataFrame, Series
df = DataFrame(
    {'integer':[1,2,3,6,7,23,8,3],
     'float':[2,3.4,5,6,2,4.7,4,8],
     'string':['saya',None,'aku','cinta','kamu','a','b','jika']}
)

df
Out[2]:
float integer string
0 2.0 1 saya
1 3.4 2 None
2 5.0 3 aku
3 6.0 6 cinta
4 2.0 7 kamu
5 4.7 23 a
6 4.0 8 b
7 8.0 3 jika
In [3]:
df.describe()
Out[3]:
float integer
count 8.000000 8.000000
mean 4.387500 6.625000
std 2.023037 7.069805
min 2.000000 1.000000
25% 3.050000 2.750000
50% 4.350000 4.500000
75% 5.250000 7.250000
max 8.000000 23.000000
In [4]:
df.cov()
Out[4]:
float integer
float 4.092679 0.766071
integer 0.766071 49.982143
In [5]:
df.corr()
Out[5]:
float integer
float 1.000000 0.053562
integer 0.053562 1.000000
In [ ]: