I would like to know if this a syntax of Python or a numpy related thing.
For example:
x = numpy.array([(1, 2), (3, 4)])
print(x[:,0])
# [1, 3]
How can I implement my own method for this operation ? What is the name of ':,0' syntax ?
I would like to know if this a syntax of Python or a numpy related thing.
For example:
x = numpy.array([(1, 2), (3, 4)])
print(x[:,0])
# [1, 3]
How can I implement my own method for this operation ? What is the name of ':,0' syntax ?