在Python中基于循环的表大小添加列名称

Input Table: Input Table

Required Output : Output Image, I want the column name addition which should be loop based because each if my number of column will change, it should automatically take care and update the table with column names.

试过的代码:

Code

Getting Output: Generated Output form Code

请让我知道我能达到这个要求的输出吗?