-
What is the python datatable equivalent of R In R, this is trivial and fast: In python datatable, I'd like to do something like:
but that doesn't work.. My work around does work, but it seems exceedingly verbose, not to mention that it is slow on 60,000,000 row dataset with 3,000,000 plus groups
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Unfortunately, as for the moment there is no way to access groupby C++ information from Python, including the number of groups and row indexes. So I don't really see an elegant solution here. As a workaround you can do something like this
Though it is, of course, very far from the optimal solution. |
Beta Was this translation helpful? Give feedback.
-
A useful alternative was provided on stackoverflow: See here -- see the selected answer with |
Beta Was this translation helpful? Give feedback.
A useful alternative was provided on stackoverflow: See here -- see the selected answer with
create_ranges()
function.