https://github.com/scipy/scipy/pull/3150 was merged, so this line and the previous can be replaced by `y = special.boxcox(x, lmbda)`.