# Package to perform 2nd degree polynomial regression with L1 penalty for use of the 2nd degree

I'm trying to fit either a straight line or 2nd degree polynomial through many sets of points (2-dimensional data). I would much prefer a straight line over a polynomial, so am trying to penalize the 2nd degree coefficient. This reminds me of L1 regularization which can be used as a penalty on coefficients and also perform feature selection. However, I only want the penalty to apply for the 2nd degree, in order to favor straight line fits. Is there a way to tweak sklearn or apply some other python package to get this result?