Probably a simple question but I could not find a simple answer. Let's for example take the following column Status within a dataframe df1:
**Status**
Planned
Unplanned
Missing
Corrected
I would like to count the rows when a cell contains, Planned and Missing. I tried the following:
test1 = df1['Status'].str.contains('Planned|Missing').value_counts()
The column Status is from the type: object. What's wrong with my line of code?