File size: 224 Bytes
89bdc35 |
1 2 3 4 5 6 7 8 |
def reorder_columns(df, front_cols):
other_cols = [col for col in df.columns if col not in front_cols]
return df[front_cols + other_cols]
def get_csv_download(df):
return df.to_csv(index=False).encode("utf-8")
|