Код: Выделить всё
operation = ['mean','std']
for i in range(0,len(operation)):
df2 = df.groupby(level='Index').agg(operation[i]).dropna(how='all')
....
Код: Выделить всё
operation = ['np.mean','np.std']
for i in range(0,len(operation)):
df2 = df.groupby(level='Index').agg(operation[i]).dropna(how='all')
....
Как мне это сделать?
Подробнее здесь: https://stackoverflow.com/questions/471 ... -functions
Мобильная версия