No operator overloading in DataFrames.jl?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

No operator overloading in DataFrames.jl?

nuffe
The ability to add, subtract (etc) dataframes with automatic index alignment is one of the great features with Pandas. Currently this is not implemented in DataFrames.jl. I was just wondering if this is intentional?

I was thinking about attempting to create a Pull Request, but the way Pandas implements this (https://github.com/pydata/pandas/blob/master/pandas/core/ops.py#L37) looks pretty intimidating, and I don't know what the corresponding design idiom would be in DataFrames.jl

Thanks
Reply | Threaded
Open this post in threaded view
|

Re: No operator overloading in DataFrames.jl?

John Myles White
Yes, this absence is intentional. This operation is far too magical.

 -- John

On Sunday, September 25, 2016 at 7:49:27 PM UTC+2, nuffe wrote:
The ability to add, subtract (etc) dataframes with automatic index alignment is one of the great features with Pandas. Currently this is not implemented in DataFrames.jl. I was just wondering if this is intentional?

I was thinking about attempting to create a Pull Request, but the way Pandas implements this (<a href="https://github.com/pydata/pandas/blob/master/pandas/core/ops.py#L37" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fpydata%2Fpandas%2Fblob%2Fmaster%2Fpandas%2Fcore%2Fops.py%23L37\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF-wABwjg0_KmYx6XnaSFJY1Mq6Uw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fpydata%2Fpandas%2Fblob%2Fmaster%2Fpandas%2Fcore%2Fops.py%23L37\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF-wABwjg0_KmYx6XnaSFJY1Mq6Uw&#39;;return true;">https://github.com/pydata/pandas/blob/master/pandas/core/ops.py#L37) looks pretty intimidating, and I don't know what the corresponding design idiom would be in DataFrames.jl

Thanks