Dec-04-2021, 05:55 PM
Hi,
Does anybody know the shortest command to add a suffix to the header of several columns below the header and not on the same line?
I have the dataframe below:
Does anybody know the shortest command to add a suffix to the header of several columns below the header and not on the same line?
I have the dataframe below:
Type Price1 Price2 Price3 Price4 Price5 0 A 5.467 17.450 14.340 233.440 143.550 1 B 12.347 33.776 19.700 443.335 119.450and if I use add_suffix(' USD'), it adds the USD on the same line:
Type Price1 USD Price2 USD Price3 USD Price4 USD Price5 USD 0 A 5.467 17.450 14.340 233.440 143.550 1 B 12.347 33.776 19.700 443.335 119.450While I want the USD in the line below of the prices:
Type Price1 Price2 Price3 Price4 Price5 USD USD USD USD USD 0 A 5.467 17.450 14.340 233.440 143.550 1 B 12.347 33.776 19.700 443.335 119.450