Untitled

From Trivial Peccary, 9 Months ago, written in Python, viewed 83 times.
URL http://codebin.org/view/8490177d Embed
Download Paste or View Raw
  1. # функция для сглаживания фрейма
  2. def filter_data(df, window):
  3.     # для каждого столбца применяем скользящее среднее
  4.     for column in df.columns.values:
  5.         df[column] = df[column].rolling(window).mean()
  6.     return df

Reply to "Untitled"

Here you can reply to the paste above