Dec-06-2017, 10:42 AM
Dear Pandas Experts,
I am tryig to extract data from a .csv file that contains columns called CarId, IssueDate
I want to get only those rows that have a year between 2012 and 2016.
Can someone help with that? I have no idea how to make this efficient i.e
maybe filtering before all the data is extracted.
I am tryig to extract data from a .csv file that contains columns called CarId, IssueDate
import pandas as pd train = pd.read_csv('train.csv', index_col=False, encoding="ISO-8859-1")The issue date is of format "mm/dd/yyyy".
I want to get only those rows that have a year between 2012 and 2016.
Can someone help with that? I have no idea how to make this efficient i.e
maybe filtering before all the data is extracted.