title: Formatting statsmodels regression parameters to a text string to obtain the fitted equation
body: <p>I'm trying to build a text string with the fitted parameters of a statsmodel results screen. So far I've gotten to this:</p>
  
  <pre><code>results.params
  
  const    18.352876
  x         2.729230
  x^2      -0.284947
  x^3       0.017321
  x^4      -0.000359
  dtype: float64
  
  "".join(['{coef}{var}+'.format(coef=i, var=j) for i,j in zip(results.params.values,results.params.index.values)])
  
  '18.35287604545434const+2.7292297979902465x+-0.2849465918536549x^2+0.017320680602094476x^3+-0.00035853905617123927x^4+'
  </code></pre>
  
  <p>This is the best I can do with my current and limited knowledge, but there is obviously room for improvement.</p>
  
  <p>Is there a better way to achieve a more elegant result, for example y=-3.59E-4x^4 +0.017x^3 -0.285x^2 +2.729x +18.353 using a built-in method from statsmodels or an improved  version of the above code? My goal is to get a string I can use as a title or name for a plotly trace</p>
  
  <p>Thank you beforehand.</p>