Completed debugging and optimizing Pandas rewrite.

Memory is an issue. This is a work in progress.