I a trying parse SI type patterns in another column in a DF or in a list I tried 2 things:
| a |
-------------------+
| Builder |
| left |
| SI_NAME lide_on |
| SI_ID 456 |
| Scheduling Info |
df['b']= df['a'].apply(lambda row: re.findall('\SI_\w+\s',row))
and
list_DF=[]
for index,row in df.iterrows():
list_DF.append(re.findall('\SI_\w+\s',row[0]))
I am not able to get the result and the first one returned an empty list in the new column
\Smatches a non-whitespace, notS.df['b'] = df['a'].str.findall(r'^SI_\w+'').apply(','.join)(.apply(','.join)is redundant, but will return just strings).