quantstats icon indicating copy to clipboard operation
quantstats copied to clipboard

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

Open tomas-zuquete opened this issue 2 years ago • 4 comments

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)

tomas-zuquete avatar Jan 30 '24 22:01 tomas-zuquete

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

aranduss avatar Feb 25 '24 21:02 aranduss

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

tomas-zuquete avatar Feb 25 '24 21:02 tomas-zuquete

same here

lemming78 avatar Apr 16 '24 12:04 lemming78