I have a dataframe with a column called "Description." I want to scan through all the text in this column, and identify those rows that have a description that contains a number that is at least 3 digits long.
Here's where I'm at:
import re
df['StrDesc'] = df['Description'].str.split()
y=re.findall('[0-9]{3}',str(df['StrDesc'])
print(y)
I took my text column and converted it to a string. Do I need to then run a for loop to iterate through each row before using the final regex?
Am I going about this the best way?
My error is "unexpected EOF while parsing."