I have a big dataset with 1200 rows, which looks like this:
Date | CAL_CALFIXO | FIXOCAL |
---|---|---|
2015-07-20 | Yes | No |
2015-07-21 | Yes | No |
2015-07-22 | No | No |
2015-07-23 | No | Yes |
2015-07-24 | No | No |
2015-07-25 | Yes | Yes |
2015-07-26 | No | No |
.......... | ........... | ....... |
The Date is in Date format.
My question is the following: how to extract the dates where CAL_CALFIXO and FIXOCAL are "Yes"? The code can have both columns CAL_CALFIXO and FIXOCAL together or separate.
My desired output would look like this (where at least one variable is "Yes"):
Date | CAL_CALFIXO | FIXOCAL |
---|---|---|
2015-07-20 | Yes | No |
2015-07-21 | Yes | No |
2015-07-23 | No | Yes |
2015-07-24 | No | Yes |
2015-07-25 | Yes | Yes |
.......... | ........... | ....... |
Any help will be much appreciated.