pandas filter by year where date is index code example Example: padas df filter rows by date df['20160101':'20160301']