Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

numpy matrix

>>> np.array([[1, 2], [3, 4]])
array([[1, 2],
       [3, 4]])
#np.matrix is no longer recommended!
Comment

PREVIOUS NEXT
Code Example
Python :: starting vscode on colab 
Python :: sum of number digits python 
Python :: Python make directories recursively 
Python :: python open file 
Python :: python check if string is int 
Python :: python use variable in another file 
Python :: shutil remove 
Python :: python ndim 
Python :: python run shell command 
Python :: move file python 
Python :: python numpy array delete multiple columns 
Python :: convert string to list of dictionaries 
Python :: python get volume free space 
Python :: dataframe get index name 
Python :: pandas read csv skip first line 
Python :: isnumeric python 
Python :: how to find empty rows of a dataset in python 
Python :: python argparse type date 
Python :: python instagram downloader 
Python :: index of max value of sequence python 
Python :: dataframe nested json 
Python :: how to select python 3 interpreter in linux 
Python :: nlargest heapq 
Python :: python simple input popup 
Python :: console.log() python 
Python :: plotting two columns of a dataframe in python 
Python :: Python Program to count the number of lowercase letters and uppercase letters in a string. 
Python :: python check if two sets intersect 
Python :: pandas merge certain columns 
Python :: where are python libraries installed in windows 
ADD CONTENT
Topic
Content
Source link
Name
8+9 =