WCRP-CORDEX / data-request-table

Machine readable data request tables
MIT License
0 stars 0 forks source link

changed order of columns #35

Closed larsbuntemeyer closed 5 months ago

larsbuntemeyer commented 5 months ago

closes #32

larsbuntemeyer commented 5 months ago
import pandas as pd

df = pd.read_csv("CORDEX-CMIP6/data-request.csv")
cols = df.columns
cols = cols.drop(['frequency', 'out_name'])
cols = ['out_name', 'frequency'] + list(cols)
df[cols].to_csv("CORDEX-CMIP6/data-request.csv", index=False)