Is '|' is a special character that doesn't work with the contains function? I used df[df['name'].str.contains('|')] and it selected all rows.
– marlonNov 05 '21 at 19:58
1
try to escape the symbol by writing df[df['name'].str.contains('\|')]
– Nov 05 '21 at 20:04