def check(self, feature):
        """Check that fit_transform can be called on reference data"""
        mapper = feature.as_dataframe_mapper()
        mapper.fit_transform(self.X, y=self.y)
def check ( self , feature ) : mapper = feature . as_dataframe_mapper ( ) mapper . fit_transform ( self . X , y = self . y )
Check that fit_transform can be called on reference data