plt.plot meaning of [:,0] and [:,1]
This question already has an answer here:
It is notation used in Numpy/Pandas.
[ : , 0 ]
meas (more or less) [ first_row:last_row , column_0 ]
- you have 2-dimensional list/matrix/array and you get all values in column 0 (from all rows).
上一篇: Python字符串数组如何工作?