i create a csv file from a pandas dataframe with lots of columns for our ERP system. Most of the columns are empty or constant, but the importtool of the system expects a csv file with a specified column order.
When creating the dataframe, i have something like that:
importlist = pd.DataFrame({ 'A': 'TestA',
'C': some values,
'B': '0'})
When i print the list, the columns are ordered A, B, C.
Is there a way to prevent automatical ordering? I know i could sort the columns manually again, but i think, this would't be a very nice solution, because there are about 50 columns.