this is my code currently:
previous = 0
count = 0
counts = []
item = str(data)
for x in range(len(item)):
if dates[x][3] != previous[3] or dates[x][4] != previous[4]:
if negative[x] != "No Negative":
counts.append(count)
count = 0
count += 1
previous = dates[x]
print(counts)
I keep getting an "'int' object is not subscriptable error. my values for dates and data are lists and I'm assuming the issue is that they aren't strings but nothing I do fixes the error.
thank you