Skip to content

Tag: dataframe

Order in dataframe generation

Could you explain to me why the Properties column was the third column and not the first one? As you can see I insert it as the first in pd.DataFrame, but when I do print(df), it appears as the third column. Answer Try using columns argument to assign the order of columns: This gives: