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