Each time you select the number of columns, column is different also, how do the implementation, the data selected and then how to write a new table?

This is the original table and the desired results
CodePudding user response:
This is how you like python