How to fix IndexError: invalid index to scalar variable
You are trying to index into a scalar (non-iterable) value: When you call [y for y in test] you are iterating over the values already, so you get a single value in y. Your code is the same as trying to do the following: I’m not sure what you’re trying to get into your results … Read more