ranaroussi / quantstats

Portfolio analytics for quants, written in Python
Apache License 2.0
4.59k stars 809 forks source link

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

Open MacarocoFonseca opened 5 months ago

MacarocoFonseca commented 5 months ago

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 5 months ago

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

MacarocoFonseca commented 5 months ago

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

lemming78 commented 3 months ago

same here