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 = [email protected]
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 [email protected]
2 [email protected]
3 [email protected]
4 [email protected]
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 [email protected] on
2 [email protected] on
3 [email protected] off
4 [email protected] on
How do I achieve this?