[add] negative lags

Bug #537022 reported by kwgoodman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
larry
New
Wishlist
Unassigned

Bug Description

Add ability to specify a negative lag.

lar.lag(1) currently works; but lar.lag(-1) raises a ValueError:

larry/la/deflarry.pyc in lag(self, nlag, axis)
   2604 raise IndexError, 'axis cannot be None.'
   2605 if nlag < 0:
-> 2606 raise ValueError, 'nlag cannot be negative'
   2607 y = self.copy()
   2608 y.label[axis] = y.label[axis][nlag:]

ValueError: nlag cannot be negative

kwgoodman (kwgoodman)
Changed in larry:
importance: Undecided → Wishlist
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.