---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-9-6f1d37862f95> in <module>()
5 # To get the max drawdown use the empyrical drawdown method
6 # Apply it over an expanding window of stock_returns
----> 7 pf.create_returns_tear_sheet(stock_returns)
/venvs/py35/src/pyfolio/pyfolio/plotting.py in call_w_context(*args, **kwargs)
50 if set_context:
51 with plotting_context(), axes_style():
---> 52 return func(*args, **kwargs)
53 else:
54 return func(*args, **kwargs)
/venvs/py35/src/pyfolio/pyfolio/tears.py in create_returns_tear_sheet(returns, positions, transactions, live_start_date, cone_std, benchmark_rets, bootstrap, turnover_denom, header_rows, return_fig)
575 plotting.plot_monthly_returns_heatmap(returns, ax=ax_monthly_heatmap)
576 plotting.plot_annual_returns(returns, ax=ax_annual_returns)
--> 577 plotting.plot_monthly_returns_dist(returns, ax=ax_monthly_dist)
578
579 plotting.plot_return_quantiles(
/venvs/py35/src/pyfolio/pyfolio/plotting.py in plot_monthly_returns_dist(returns, ax, **kwargs)
267 alpha=0.80,
268 bins=20,
--> 269 **kwargs)
270
271 ax.axvline(
/venvs/py35/lib/python3.5/site-packages/matplotlib/__init__.py in inner(ax, *args, **kwargs)
1810 warnings.warn(msg % (label_namer, func.__name__),
1811 RuntimeWarning, stacklevel=2)
-> 1812 return func(ax, *args, **kwargs)
1813 pre_doc = inner.__doc__
1814 if pre_doc is None:
/venvs/py35/lib/python3.5/site-packages/matplotlib/axes/_axes.py in hist(self, x, bins, range, normed, weights, cumulative, bottom, histtype, align, orientation, rwidth, log, color, label, stacked, **kwargs)
6216 labels = [label]
6217 else:
-> 6218 labels = [six.text_type(lab) for lab in label]
6219
6220 for (patch, lbl) in zip_longest(patches, labels, fillvalue=None):
TypeError: 'zipline.assets._assets.Equity' object is not iterable