0

I am new to pandas and I saw some pandas code which says

plt.scatter(data[:,0],data[:,1])

I want to know what does data[:,0] and data[:,1] means?

Anand
  • 105
  • 3
  • 12
  • A read of [any basic numpy documentation](https://numpy.org/doc/stable/reference/arrays.indexing.html) would reveal this basic knowledge. – cs95 Aug 23 '20 at 10:36

1 Answers1

4

Thas mean:

data[:,0] - > All the first column of the dataset

data[:,1] -> All the second colum of the dataset

asantz96
  • 611
  • 5
  • 15