We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
def aroon_up(data, period): return (1 + data.rolling(period).apply(lambda x: pd.Series(x).idxmax(skipna = True))) / period * 100
def aroon_down(data, period): return (1 + data.rolling(period).apply(lambda x: pd.Series(x).idxmin(skipna = True))) / period * 100
data must be a pandas.Series object - we could wrap it as pd.Series(data) first.
Current code executes at around 8 seconds on 16285 rows of data. Code above executes at around 1.36 seconds
The text was updated successfully, but these errors were encountered:
No branches or pull requests
def aroon_up(data, period):
return (1 + data.rolling(period).apply(lambda x: pd.Series(x).idxmax(skipna = True))) / period * 100
def aroon_down(data, period):
return (1 + data.rolling(period).apply(lambda x: pd.Series(x).idxmin(skipna = True))) / period * 100
data must be a pandas.Series object - we could wrap it as pd.Series(data) first.
Current code executes at around 8 seconds on 16285 rows of data.
Code above executes at around 1.36 seconds
The text was updated successfully, but these errors were encountered: