I have a pandas DataFrame as follows:
mail = DataFrame({'mail' : ['adv@gmail.com', 'fhngn@gmail.com', 'foinfo@yahoo.com', 'njfjrnfjrn@yahoo.com', 'nfjebfjen@hotmail.com', 'gnrgiprou@hotmail.com', 'jfei@hotmail.com']})
that looks like:
mail
0 adv@gmail.com
1 fhngn@gmail.com
2 foinfo@yahoo.com
3 njfjrnfjrn@yahoo.com
4 nfjebfjen@hotmail.com
5 gnrgiprou@hotmail.com
6 jfei@hotmail.com
What I want to do is to filter out (elimiante) all those rows in which the value in the column mail ends with '@gmail.com'.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…