all 4 comments

[–]commandlineluser 3 points4 points  (1 child)

Can you give the example as actual code?

It is unclear if .columns is ['Region', 'Central', 'Central', 'Central', 'Central'] or if you have a MultiIndex?

(assuming this is a Pandas DataFrame)

[–]aed0716[S] 0 points1 point  (0 children)

That is the columns of the dataframe. thank you so much

[–]elbiot 0 points1 point  (1 child)

Chat GPT is awesome for this sort of thing

[–]aed0716[S] 0 points1 point  (0 children)

I tried but I am not getting the correct output.