TypeError: unsupported operand type(s) for +: 'float' and 'str'
MacarocoFonseca opened this issue · 3 comments
MacarocoFonseca commented
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 commented
Also having this error. Curious if there has been any update.
MacarocoFonseca commented
still in the same status... maybe best to try an older package version
lemming78 commented
same here