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

TypeError: unsupported operand type(s) for +: 'float' and 'str' #331

Open
MacarocoFonseca opened this issue Jan 30, 2024 · 3 comments
Open

Comments

@MacarocoFonseca
Copy link

MacarocoFonseca commented Jan 30, 2024

While using make_index() function I am getting a TypeError: unsupported operand type(s) for +: 'float' and 'str' message. This is my code that originated the error

import quantstats as qs
qs.extend_pandas()

tickers = {'AMZN': 0.5, "META":0.5}

portfolio = qs.utils.make_index(ticker_weights=tickers)
@aranduss
Copy link

Also having this error. Curious if there has been any update.

@MacarocoFonseca
Copy link
Author

MacarocoFonseca commented Feb 25, 2024

still in the same status... maybe best to try an older package version

@lemming78
Copy link

same here

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

No branches or pull requests

3 participants