Pushpak21's picture
Upload folder using huggingface_hub
89bdc35 verified
raw
history blame contribute delete
224 Bytes
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")