I'm using pandas and I want to filter on a column for values value_1, value_2, and blanks. In excel I can select filter go to the column and select value_1, value_2, and blanks but in pandas its only returning value_1 and value_2. Ultimately, I want to fill in the blanks with a value of value_1 but I need to get to the point where I have a dataframe and a series that has value_1, value_2, and blanks (empty columns)
example Data {'country': ['United States of America', 'Canada', 'Argentina', ' ']}
import pandas as pd
file='countries.xlsx'
df=pd.read_excel(file)
US_CA_Blanks=['Canada', 'United States of America', 'Argentina', '(Blanks)', '', '
','Blanks']
df_US_CA_Blanks_col_B.country.isin(US_CA_Blanks_col_B)
and this returns only US, CA, Argentina but not the blanks. I have also tried to put on the list a variety of spaces and quotes examples above with no luck.