Please don't post code nor error message as image. Please post them as text. Please include a minimal viable reproducible example. Maybe the problem with your code is that you are using a Python list instead of a numpy array? You could try `s = np.array(s)`.
– JohanCNov 27 '20 at 18:49
Please read the top-rated answers at [What are the advantages of NumPy over regular Python lists?](https://stackoverflow.com/questions/993984/what-are-the-advantages-of-numpy-over-regular-python-lists)
– JohanCNov 27 '20 at 18:51