Python, NLP, Spacy.
e: print(e) return {'Uncategorized':1} def transform(self, X): X['categories'] = X['title'].apply(lambda title: self.get_categories(title)) return X When running the pipeline, the following DataFrame is created: Step 2: Data Transformation For Spacy The next step is to take the DataFrame object,