Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

init array in numpy

>>> import numpy as np
>>> A = np.array([1,7,3,7,3,6,4,9,5])
>>> A
array([1, 7, 3, 7, 3, 6, 4, 9, 5])
Comment

numpy init array

a=[]
for i in range(8):
    a.append(i)
Comment

init matrix in numpy

>>> A = np.array([[4,7,6],[1,2,5],[9,3,8]])
>>> A
array([[4, 7, 6],
       [1, 2, 5],
       [9, 3, 8]])
>>> A.shape
(3, 3)
Comment

PREVIOUS NEXT
Code Example
Python :: delete content of table django 
Python :: python dictionary add item 
Python :: str count python 
Python :: not using first row as index pandas 
Python :: python capitalize 
Python :: python import list from py file 
Python :: how to pass multiple parameters by 1 arguments in python 
Python :: how to find duplicate strings in a list of string python function 
Python :: label binarizer 
Python :: python debugging 
Python :: parse email python 
Python :: list count python 
Python :: opening a file in python 
Python :: // in python 
Python :: plot scattered dataframe 
Python :: python == vs is 
Python :: tensorflow Dense layer activatity leaklyrelu 
Python :: python how to create a function 
Python :: add values from 2 columns to one pandas 
Python :: pandas get row if difference previous 
Python :: how to make loops in python 
Python :: determinant of 3x3 numpy 
Python :: python tuple example 
Python :: _ in python 
Python :: reaction role discord.py 
Python :: comentar codigo en python 
Python :: turn a query set into a list django 
Python :: kwargs in python 
Python :: python environment variable 
Python :: how to set default file directory for jupyter notebook 
ADD CONTENT
Topic
Content
Source link
Name
8+3 =