It seems to be an error that occurs when index is float instead of int. In other words, it feels like the part that should be data [2] is data [2.0].
Recommended Posts