Here is the code I have...
from sklearn_pandas import DataFrameMapper mapper=DataFrameMapper([ ([\'MSSubClass\', \'MSZoning\'], PCA(1)) ], df_out=True) np