Replies: 1 comment 1 reply
-
I think the reason for this is that we're trying not to shadow the built-in python This wrapper is looking at the type of the argument, and for In your example, the argument is not an It seems that we need to review how this wrapper is implemented. For now, to make it work, you can simply do DT[:, [dt.sum(f.y), dt.sum(f.v)]] |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If I use the example
Frame
in the documentation https://datatable.readthedocs.io/en/v1.0.0/manual/comparison_with_rdatatable.html as below:Using
dt.mean()
, the mean of each column is returned as followsHowever, the exact same syntax, using
dt.sum()
instead ofdt.mean()
, works row-wiseWhy is this happening?
Beta Was this translation helpful? Give feedback.
All reactions