Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

np matrix drop zero column

np.delete(matrix, np.where(~matrix.any(axis=1))[0], axis=1)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #np #matrix #drop #column
ADD COMMENT
Topic
Name
3+2 =