Suppose I have a pandas dataframe like this:
Word Rating
0 Bear 1
1 Yuck 2
2 Girl 3
3 Yellow 4
How can I use regex in pandas to filter out the rows that have the word that starts with the letter "y" but keep the dataframe formatting? I know the regex pattern would be r"\b[^y]\w+\b"
Expected output:
Word Rating
0 Bear 1
2 Girl 3