You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
currently pp.uniq() can only eliminate duplicates as a whole. But I think it
would be cooler if you give it a (w[-1]) so that it would eliminate (or merge
entries) based on a single column, rather than the whole line.
Original issue reported on code.google.com by davidlee...@gmail.com on 26 Nov 2012 at 10:17
The text was updated successfully, but these errors were encountered:
I've finally got a few cycles, so I was taking a look at the underpinnings.
But after thinking about this, I realized that there is a workaround...
If in the case above you re.replace w[-1] you can remove it then pipe it to
pp.uniq() which will then provide the uniq set. If you need to merge entries,
you can again pipe it to pp.oneline(). I think.
Its been so long now I forgot the original data set I used that warranted this
feature. If I come across it again I'll be sure to add it myself!
I also realized that to implement w[-1] into the pp class would be problematic
no? Since that refers to a method elsewhere and power pyper does not recognize
it.
Original comment by davidlee...@gmail.com on 2 Apr 2014 at 7:02
Original issue reported on code.google.com by
davidlee...@gmail.com
on 26 Nov 2012 at 10:17The text was updated successfully, but these errors were encountered: