Horje
how to address a column in a 2d array python Code Example
how to address a column in a 2d array python
>>> import numpy as np
>>> A = np.array([[1,2,3,4],[5,6,7,8]])

>>> A
array([[1, 2, 3, 4],
    [5, 6, 7, 8]])

>>> A[:,2] # returns the third columm
array([3, 7])




Python

Related
python order 2d array by secode element Code Example python order 2d array by secode element Code Example
pandas number of columns Code Example pandas number of columns Code Example
finding the index of an element in a pandas df Code Example finding the index of an element in a pandas df Code Example
ln in python Code Example ln in python Code Example
python from timestamp to string Code Example python from timestamp to string Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7