I have these kinds of data. Original data is from 1st column to 5th column.
Is there any way to create new data by randomly combining columns without specific criteria?
For example, I made a new data by making formula between columns. I know there is some way to make formula on my own with python. But I want to make about more than 100 columns. Is there any automatic way to do this? (Numpy, pandas or things like that)

You could use some builtin modules like
randomandoperatorwhich contains a set of mathematical functions. I used this approach to generate some random columns with a random combination of the original columns. Notice that the number of original columns used for every operation is also random, but you could set this into a specific number if you prefer. The[]in the name of the columns are just for visualization purpose as in some cases the names of the columns can appear too close and be hard to read. In this code the mathematical operations just use the original columns, if you would like to use also the new created columns you should delete theoriginal_columnsvariable and take thedf.columnsinside the loop. Also consider that with this code all the operations happen from left to right with pairs of two numbers, that means that if you see A + B * C the order will be:A + B
(A+B) * C
Output: