python numpy array delete multiple columns

Solutions on MaxInterview for python numpy array delete multiple columns by the best coders in the world

showing results for - "python numpy array delete multiple columns"
Carys
15 Nov 2019
1a = [[ 0  1  2  3], 
2     [ 4  5  6  7], 
3     [ 8  9 10 11]]
4
5print(np.delete(a, [0, 3], 1))
6
7# [[ 1  2]
8#  [ 5  6]
9#  [ 9 10]]