Skip to content

Commit

Permalink
BUG: don't use __builtin__.sum in Series.order, address GH #327
Browse files Browse the repository at this point in the history
  • Loading branch information
wesm committed Nov 3, 2011
1 parent 0f337e7 commit 322cedd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pandas/core/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -1320,11 +1320,11 @@ def _try_mergesort(arr):
argsorted = argsorted[::-1]

if na_last:
n = sum(good)
n = good.sum()
sortedIdx[:n] = idx[good][argsorted]
sortedIdx[n:] = idx[bad]
else:
n = sum(bad)
n = bad.sum()
sortedIdx[n:] = idx[good][argsorted]
sortedIdx[:n] = idx[bad]

Expand Down

0 comments on commit 322cedd

Please sign in to comment.