code: def _earningsToDF(e):
      '''internal'''
      if e:
          df = pd.io.json.json_normalize(e, 'earnings', 'symbol')
          _toDatetime(df)
          _reindex(df, 'EPSReportDate')
      else:
          df = pd.DataFrame()
      return df _earningsToDF(e):
      '''internal'''
      if e:
          df = pd.io.json.json_normalize(e, 'earnings', 'symbol')
          _toDatetime(df)
          _reindex(df, 'EPSReportDate')
      else:
          df = pd.DataFrame()
      return df
docs: internal