How to search for a specific cell in Pandas by matching the content list… here is a solution to the problem.
How to search for a specific cell in Pandas by matching the content list
I’m new to Python and am trying to write a small program in Python.
My request:
I have a list like this:
holiday = [‘January 1, 2018’, ‘January 26, 2018’, ‘March 2, 2018’, ‘March 30, 2018’].
I have a pandas DataFrame printed like this:
Now I want to search the data frame
for a date that matches my list, such as “January 26, 2018”, and I want to save that search result in a separate data frame.
I didn’t find the right way to do this. Please suggest