statsmodels.gam.smooth_basis.BSplines.transform# BSplines.transform(x_new)# Create the spline basis for new observations The main use of this stateful transformation is for prediction using the same specification of the spline basis. Parameters: x_newndarrayobservations of the underlying explanatory variable Returns: basisndarraydesign matrix for the spline basis for given x_new.