Код: Выделить всё
import pandas as pd
import numpy as np
dff = pd.DataFrame(np.random.randn(1, 2), columns=list('AB'))
Код: Выделить всё
A B
0 0.626386 1.52325
Код: Выделить всё
0 1.074821
dtype: float64
Код: Выделить всё
A 0.626386
B 1.523255
dtype: float64
Подробнее здесь: https://stackoverflow.com/questions/221 ... andas-mean
Мобильная версия