I have a data set from a csv file and I would like to iterate the data based on a string value within a column. I would like to only use data if a certain column has say year 2014 for instance.
df = pd.read_csv("data.csv")
year = df['Year']
while year == '2014':
## do something
My csv file has 3 columns
Year | Mileage | Price
2014 35000 15000
What would be the correct way to do this?