Slightly refactor so cum_returns works generally for dfs and ndarrays. Forego replacing NaNs twice.
Slightly refactor so cum_returns works generally for dfs and ndarrays. Forego replacing NaNs twice.

quantopian/qrisk,quantopian/empyrical