def load_from_yahoo(indexes=None, stocks=None, start=None, end=None, adjusted=True):
 data = _load_raw_yahoo_data(indexes, stocks, start, end)
 if adjusted:
  close_key = 'Adj Close'
 else:
  close_key = 'Close'
 df = pd.DataFrame({key: d[close_key] for (key, d) in iteritems(data)})
 df.index = df.index.tz_localize(pytz.utc)
 return df

def load_from_yahoo ( indexes = None , stocks = None , start = None , end = None , adjusted = True ) : data = _load_raw_yahoo_data ( indexes , stocks , start , end ) if adjusted : close_key = 'Adj Close' else : close_key = 'Close' df = pd . DataFrame ( { key : d [ close_key ] for ( key , d ) in iteritems ( data ) } ) df . index = df . index . tz_localize ( pytz . utc ) return df
loads price data from yahoo into a dataframe for each of the indicated assets .