Hello,

I have a dataframe whose column names represent polynomial portions such as ‘xy’ and as such, are symbols. I want to take all of these column names, which include:

:x

:y

:xy

:xx

:yy

and add them together using a linear combination to put into an exponential function and evaluate it for any given x and y:

f(x, y) = exp(c1*x + c2*y + c3*x*y + c4*x*x + c5*y*y)

I was wondering if this is possible with something like SymPy or another package. Thank you so much for your help.