code: def _statsToDF(s):
      '''internal'''
      if s:
          df = pd.io.json.json_normalize(s)
          _toDatetime(df)
          _reindex(df, 'symbol')
      else:
          df = pd.DataFrame()
      return df _statsToDF(s):
      '''internal'''
      if s:
          df = pd.io.json.json_normalize(s)
          _toDatetime(df)
          _reindex(df, 'symbol')
      else:
          df = pd.DataFrame()
      return df
docs: internal