Folks,
I'm currently working with a huge excel sheet, python 3.7.1 and pandas 0.23.4. My task is to write to cells based on conditional matching. Something like this:
val = lincoln@gmx.net
if val in Cell_3A:
write something to Cell_3B
To make a complete example, let's say the following is my dataframe:
Email Protection
1 lincoln@gmail.net
2 obama@gmail.net
3 trump@gmail.net
4 franklin@gmail.net
I know want to write down that all of the emails are protected, except for the email in row 3. So the finished dataframe should look like this:
Email Protection
1 lincoln@gmail.net on
2 obama@gmail.net on
3 trump@gmail.net off
4 franklin@gmail.net on
How do I achieve this?