def _df_to_csv_str(df):
    with StringIO() as sio:
        df.to_csv(sio)
        return sio.getvalue()
def _df_to_csv_str(df):
    with StringIO() as sio:
        df.to_csv(sio)
        return sio.getvalue()