1#Reshuffle the column names of the dataframe called 'data'
2data = data[['Year','Sales',
3 'COGS',
4 'Operating Exp',
5 'Other Income',
6 'Financing Charges',
7 'Zakat',
8 'Income Tax',
9 'Net Income',
10 'CFO',
11 'CFI',
12 'Free Cash Flow',
13 'Shareholder Equity',
14 'Dividends',
15 'EPS']]
1You could also do something like this:
2
3df = df[['mean', '0', '1', '2', '3']]
4You can get the list of columns with:
5
6cols = list(df.columns.values)
7The output will produce:
8
9['0', '1', '2', '3', 'mean']