Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python numpy array delete multiple columns

a = [[ 0  1  2  3], 
     [ 4  5  6  7], 
     [ 8  9 10 11]]

print(np.delete(a, [0, 3], 1))

# [[ 1  2]
#  [ 5  6]
#  [ 9 10]]
Comment

PREVIOUS NEXT
Code Example
Python :: get string until character python 
Python :: python iterate through dictionary 
Python :: python plot 
Python :: convert string to list of dictionaries 
Python :: python currency 
Python :: python try catch 
Python :: how to practise python 
Python :: dataframe get index name 
Python :: add to middle of list python 
Python :: find most frequent element in an array python 
Python :: np deep copy matrix 
Python :: combine two dictionary adding values for common keys 
Python :: how to say something python 
Python :: capitalise words in a column pandas 
Python :: python instagram downloader 
Python :: tkinter progressbar set value 
Python :: load a Dictionary from File in Python Using the Load Function of the pickle Module 
Python :: iterate through attributes of class python 
Python :: python decimal string 
Python :: python get first day of year 
Python :: The specified file cannot be played on the specified MCI device. The file may be corrupt, not in the correct format, or no file handler available for this format. python 
Python :: convert pandas dataframe/ table to python dictionary 
Python :: python odbc access database 
Python :: time a line of code python 
Python :: pandas length of array in column 
Python :: pandas replace string with another string 
Python :: python convert dict to xml 
Python :: changing the current working directory in python 
Python :: read excel file in python 
Python :: shutil move file 
ADD CONTENT
Topic
Content
Source link
Name
3+8 =