def getData(self, tickers) : settings = Settings() dp = TimeSeries(settings).get_agg_ETF_data(tickers) dp = dp.fillna(method='pad', axis=0) dp = dp.fillna(method='bfill', axis=0) dp = dp.dropna() dp = dp.reindex_axis(['open', 'high', 'low', 'close', 'volume', 'price'], axis=2) return dp