This page shows one way to accomplish this: https://www.projectpro.io/recipes/use-spacy-lemmatizer
Here is my modified function:
def to_lemma(text): tp = nlp(text) return " ".join([word.lemma_ for word in tp])