Skip to content
Advertisement

Filter Value x in CSV Python

I am trying to filter the AREA field. I only want to see data of AREA DE F2

How can I do this? I’ve searched Google.enter image description here

Advertisement

Answer

You need to use

df.loc[df['AREA'] == 'DE F2']

you have the .loc[] in the wrong position

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement