I have pyarrow table with header like that: ['column1','column2','column3','column4','column5' ] I want to swap and mode column header and data: ['column1','column2','column5','column3','column4' ] How I can do it with pandas or pyarrow
df = df[['column1','column2','column5','column3','column4' ]]
This would rearrange the columns