TL;DR
predict "price", given "length" and "wandRate"
I have some time-series data where the dependent variable is a polynomial result of 2 independent data points.
This is past pricing data of Processed Rice Grains of a certain kind of rice.
Based on the variable "wandRate" (1st variable) which is the price for any "length" (2nd variable) over 8.2, prices of rice grains with lower lengths are calculated.
These prices are based on a long trial-and-error method of asking various experts on their "opinion" on how a certain grain of a certain length should be priced. There are other variables which can't be objectively measured, but length is the main indicator. I was wondering if it would be possible to create an objective model or find a polynomial equation in two variables to predict "price", given "length" and "wandRate"
I was led to thinking in terms of a polynomial when I plotted the data in google sheets and a sixth-degree-polynomial equation gave an intuitively correct looking trendline.
NOTE: I do not have a strong math background so simple google searches about "polynomial in 2 variables from data python equation" did not yield any implementable results.
I'm looking for some python code to accomplish this. ANY guidance on where to look would be appreciated.