class ArrayCaster(BaseEstimator, TransformerMixin):

    def fit(self, x, y=None):
        return self

def transform(self, data):
    pass
unable to use FeatureUnion in scikit-learn due to different dimensions