safe_write Functions write_csv_atomic(df, path, **kwargs) Writes df to path as a CSV, replacing the previous file in one step.