@deprecated('load_bars_from_yahoo is deprecated, please register a yahoo_equities data bundle instead')
def load_bars_from_yahoo(indexes=None, stocks=None, start=None, end=None, adjusted=True):
 data = _load_raw_yahoo_data(indexes, stocks, start, end)
 panel = pd.Panel(data)
 panel.minor_axis = ['open', 'high', 'low', 'close', 'volume', 'price']
 panel.major_axis = panel.major_axis.tz_localize(pytz.utc)
 if adjusted:
  adj_cols = ['open', 'high', 'low', 'close']
  for ticker in panel.items:
   ratio = (panel[ticker]['price'] / panel[ticker]['close'])
   ratio_filtered = ratio.fillna(0).values
   for col in adj_cols:
    panel[ticker][col] *= ratio_filtered
 return panel

@ deprecated ( 'load_bars_from_yahoo is deprecated, please register a yahoo_equities data bundle instead' ) def load_bars_from_yahoo ( indexes = None , stocks = None , start = None , end = None , adjusted = True ) : data = _load_raw_yahoo_data ( indexes , stocks , start , end ) panel = pd . Panel ( data ) panel . minor_axis = [ 'open' , 'high' , 'low' , 'close' , 'volume' , 'price' ] panel . major_axis = panel . major_axis . tz_localize ( pytz . utc ) if adjusted : adj_cols = [ 'open' , 'high' , 'low' , 'close' ] for ticker in panel . items : ratio = ( panel [ ticker ] [ 'price' ] / panel [ ticker ] [ 'close' ] ) ratio_filtered = ratio . fillna ( 0 ) . values for col in adj_cols : panel [ ticker ] [ col ] *= ratio_filtered return panel
loads data from yahoo into a panel with the following column names for each indicated security: - open - high - low - close - volume - price note that price is yahoos adjusted close .