def _earningsToDF(e):
if e:<EOL><INDENT>df = pd.io.json.json_normalize(e, '<STR_LIT>', '<STR_LIT>')<EOL>_toDatetime(df)<EOL>_reindex(df, '<STR_LIT>')<EOL><DEDENT>else:<EOL><INDENT>df = pd.DataFrame()<EOL><DEDENT>return df<EOL>
internal