Closed zendevil closed 2 years ago
We would need a namespace that redefines '-' in terms of the python "minus" attribute (and "div", etc). Definitely doable.
How can you please elaborate I don’t get it?
Closing. This isn't a bug with libpython-clj but rather just needs someone to implement a namespace calling into the python functions themselves.
Basically, many python libraries have overloaded operators. For example, in Pandas, you get the time delta between two times by doing:
Unfortunately, doing the following:
doesn't yet work, gives:
On the other hand, doing this:
gives:
Is there anyway to overload the negative sign? The problem is that whatever the actual implemented function is that overloads the minus is buried somewhere in the source and isn't well known or meant to be exposed, it seems to me. So how to do these basic operations?