'TypeError: can't multiply sequence by non-int of type 'float'' within if clause. in Python

前端 未结 1 1633
南方客
南方客 2021-01-24 08:19

Here, from a large data file split into different rows with the same 4th column, I\'m trying to plot a line, with only the highest 10% of entries from each row from the 3rd colu

1条回答
  •  有刺的猬
    2021-01-24 09:13

    Just remove str(int()) from max(str(int(row1[i][2]))). You can't multipy anything by a string neither can you convert a list to int.

    0 讨论(0)
提交回复
热议问题