I read contents from excel file using pandas::
import pandas as pd df = pd.read_excel(\"FAM_template_Update 1911274_JS.xlsx\" ) df
While trying
You need to loop through the individual strings within your dataframe. The NLP parser and entity extraction is expecting a string.
For example:
for row in range(len(df)): doc = nlp(df.loc[row, "text_column"]) for enitity in doc.ents: print((entity.text))