MultivariateStats.transform ,MethodError:

AFAICT you should call transform(p, data) instead (small p).