AttributeError Traceback (most recent call last)
<ipython-input-7-dbdebde5f2a4> in <module>()
----> 1 returns, positions, transactions, gross_lev = pf.utils.extract_rets_pos_txn_from_zipline(results)
/Users/im572/anaconda/envs/zl36/lib/python3.6/site-packages/pyfolio/utils.py in extract_rets_pos_txn_from_zipline(backtest)
427 """
428
--> 429 backtest.index = backtest.index.normalize()
430 if backtest.index.tzinfo is None:
431 backtest.index = backtest.index.tz_localize('UTC')
AttributeError: 'RangeIndex' object has no attribute 'normalize'