use map in place of generator in partitionby
Merge pull request #167 from mrocklin/no-generators

use map in place of generator in partitionby