remove filtering from analyze that is super slow and not really needed

This commit is contained in:
Janne Sinivirta 2017-10-22 21:50:07 +03:00
parent 6f5307fda7
commit f6ef8383bb

View File

@ -24,7 +24,7 @@ def parse_ticker_dataframe(ticker: list, minimum_date: arrow.Arrow) -> DataFrame
.drop('BV', 1) \ .drop('BV', 1) \
.rename(columns={'C':'close', 'V':'volume', 'O':'open', 'H':'high', 'L':'low', 'T':'date'}) \ .rename(columns={'C':'close', 'V':'volume', 'O':'open', 'H':'high', 'L':'low', 'T':'date'}) \
.sort_values('date') .sort_values('date')
return df[df['date'].map(arrow.get) > minimum_date] return df
def populate_indicators(dataframe: DataFrame) -> DataFrame: def populate_indicators(dataframe: DataFrame) -> DataFrame: