Nonlinear relationships are common in applied research, especially in education, health, and economics. While Python provides statsmodels for mixed-effects models and patsy for spline construction, ...
If you look at the source of extensible_splines/splines.py you will notice that the most commonly used varieties of spline can be defined with only one or two of four ...