I am trying to look through a .csv for rows with a value matching "2. Borgere > 65". There are five rows in my .csv where the fist column matches the word, however pandas return an empty DataFarme. I've tried loading up the .csv both in ISO 8859-1 and Latin-1, but same result.
Here's my code:
#LOAD NØGLETAL IN PANDAS
df_noegletal = pd.read_csv("zipfiler/Vaccine_maalgrupper_DB/Noegletal_vacc_daekning.csv", encoding="Latin-1")
#PRINT ROWS MATCHING VALUE
print(df_noegletal[df_noegletal.eq("2. Borgere > 65").any(1)])
Pandas returns the following:
Empty DataFrame
Columns: [Målgruppe, Ansættelsessted, Bopælsregion, Population, Antal førstevaccinerede, Antal færdigvaccinerede, Førstegangs vaccinerede dækning (%), Færdigvaccinerede dækning (%)]
Index: []
Process finished with exit code 0
Even though there are values in my .csv that match "2. Borgere > 65".