TST: Fix major inefficiency in dataframe generation
TST: Fix major inefficiency in dataframe generation

STY: Fix flake8 errors in core.py

quantopian/zipline,humdings/zipline,quantopian/zipline,humdings/zipline