I have a table:
Name1 Name2 Name3
0 ABC FGD NNY
1 ABSTRE PC ABSTRE Tree in
2 P ABSTRE NNY
3 JJJ FGD NNY
4 ABSFRE PC ABSKRE
I need get these info:
['ABSTRE', 'ABSFRE', 'ABSTRE', 'ABSKRE']
So its means that code has the same 3 letters and the same length.
- The same 3 letters: ABS
- Length: 6
I need get all codes from table. I think it should be something like these:
t='^[A-Z0-9]{3,10}?$'
for i in df.items():
l=df[df[i].str.contains(t)]
Could you please help me with this?
ABCcorrect ? It is not typo and needABS?