passing series index as argument to handler rather than adding attribute to class