pydata/pandas — pull request #4051 by jtratner (2013-06-27 02:45:45+00:00)
Title: ENH: Use numexpr for all arithemtic operators + refactor arithmetic operations

Resolves #3765.

This adds:
1. numexpr acceleration to `Series`, `Panel`, `Panel4D`, and `DataFrame` (`SparsePanel` has to opt-out b/c doesn't respond to shape)
2. Adds a test mechanism to numexpr to check that it actually is accelerated.
3. Moves all arithmetic operators to core/generic and binds them at import to reduce code duplication.
4. Makes all of `Series`, `Panel`, `Panel4D`, `DataFrame`, `SparsePanel` support the entire range of arithmetic operators [previously some were missing].
5. Cleans up core/expressions slightly
6. Test cases for all operations.

@cpcloud - I think this would be very easy to add into your current changes with eval. (mostly just changes `if hasattr` --> `getattr` to be cleaner).