I have a dataframe like that (as an example).
| text |
|---|
| I left the country. |
| Andrew is from America and he loves apples. |
I want to add a new column, number of nouns, where Spacy should count the NOUNS pos tags. How do I convert that in Python?
import pandas as pd
import spacy
# the dataframe
# NLP Spacy with POS tags
nlp = spacy.load("en_core_web_sm")
My question is, how to apply nlp on the "text" column, check if the pos is NOUN and count it and give it as a feature?
Thanks!

