I'm new to this machine learning, as the title says I have this error in the code and I can't solve it, I'm working on Python 3.7 in Pycharm.
TypeError: can only concatenate str (not "int") to str -
# where "Último" is a df with prices.
pred = []
for i in range(0,valid.shape[0]):
a = train["Último"][len(train)-925+i:].sum() + sum(pred)
b = a/925
pred.append(b)