pydata/pandas — pull request #3764 by jtratner (2013-06-05 22:40:00+00:00)
Title: BUG: Fix __truediv__ numexpr error

`__truediv__` had been set up to use numexpr, but this happened by passing
the division operator as the string. numexpr's evaluate only checked 2
frames up, which meant that it picked up the division setting from
`frame.py` and would do floor/integer division when both inputs were integers.
You'd only see that issue with a dataframe large enough to trigger
numexpr evaluation (>10000 cells)

This adds test cases to `test_expression.py` that [exhibit this failure under the
Python2.7 full deps
test](https://travis-ci.org/jtratner/pandas/builds/7822069). The test
cases only test `Series` and `DataFrame` (though it looks like neither
`Series` nor `Panel` use `numexpr`). It doesn't fail under Python 3
because integer division is totally gone.

Now `evaluate`, `_evaluate_standard` and `_evaluate_numexpr` all accept
extra keyword arguments, which are passed to `numexpr.evaluate`.

The test case is currently a separate commit that fails. I wasn't sure
whether I should have combined it with the bugfix commit or not. Happy
to change it if that's more appropriate.