{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Python Guide V1.2.11

6thsubplot pltplotxyfmtlabelplotsyvsx like

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: //sample.org/file.txt"6 flink!=!urllib.urlopen(url)! #!continue!as!when!reading!file Numpy arrays import!numpy!as!np! A collection of same-type objects, with functions: • np.arange(a,b,c)!!#!like!range! • np.linspace(0.1,0.8,n)!#!n!floats! • np.zeros(n)!#!n!zero!floats! • np.array(x)!#!convert!list!or!tuple!x! • np.random.random(n)!#!n!values!in![0,1)! • np.random.randint(a,b,n)!#!int!in![a,b)! • np.random.seed(s)!#!reset!seed!to!s! • np.random.shuffle(x)!#!shuffle!x! Math operations with arrays: • +6–6*6/6//6%6** between two arrays or an array and...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online