Skip to content

Instantly share code, notes, and snippets.

@enxt
Created November 2, 2019 14:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save enxt/f782b27c2d34b9484f4b6c4badd717e6 to your computer and use it in GitHub Desktop.
Save enxt/f782b27c2d34b9484f4b6c4badd717e6 to your computer and use it in GitHub Desktop.
Simple EMA calculation with pandas
def EMA(data, window):
return pd.Series(data).ewm(span=window, adjust=False).mean()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment