Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Series' object has no attribute 'iteritems' #713

Open
arfsjunior opened this issue Apr 9, 2024 · 0 comments · May be fixed by #715
Open

'Series' object has no attribute 'iteritems' #713

arfsjunior opened this issue Apr 9, 2024 · 0 comments · May be fixed by #715

Comments

@arfsjunior
Copy link


AttributeError Traceback (most recent call last)
Cell In[48], line 1
----> 1 pf.create_full_tear_sheet(carteira["retorno"], benchmark_rets=retorno["^BVSP"])

File c:\Users\arfsj\miniconda3\lib\site-packages\pyfolio\tears.py:201, in create_full_tear_sheet(returns, positions, transactions, market_data, benchmark_rets, slippage, live_start_date, sector_mappings, bayesian, round_trips, estimate_intraday, hide_positions, cone_std, bootstrap, unadjusted_returns, style_factor_panel, sectors, caps, shares_held, volumes, percentile, turnover_denom, set_context, factor_returns, factor_loadings, pos_in_dollars, header_rows, factor_partitions)
195 returns = txn.adjust_returns_for_slippage(returns, positions,
196 transactions, slippage)
198 positions = utils.check_intraday(estimate_intraday, returns,
199 positions, transactions)
--> 201 create_returns_tear_sheet(
202 returns,
203 positions=positions,
204 transactions=transactions,
205 live_start_date=live_start_date,
206 cone_std=cone_std,
207 benchmark_rets=benchmark_rets,
208 bootstrap=bootstrap,
209 turnover_denom=turnover_denom,
210 header_rows=header_rows,
211 set_context=set_context)
213 create_interesting_times_tear_sheet(returns,
214 benchmark_rets=benchmark_rets,
215 set_context=set_context)
217 if positions is not None:
...
6294 ):
6295 return self[name]
-> 6296 return object.getattribute(self, name)

AttributeError: 'Series' object has no attribute 'iteritems'
Output is truncated. View as a scrollable element or open in a text editor. Adjust cell output settings...

vikasgaud added a commit to vikasgaud/pyfolio that referenced this issue May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants
@arfsjunior and others