daily log 11.13.20
NUMPY
np.arrange
np.zeros((5,5))
np.random.randint(0,100,10)
np.linspace(0,10,101)
np.random.seed(101)
arr.max()
arr.min()
arr.mean()
# index of max value
arr.argmax()
arr.argmin()
arr.reshape(2,5)
INDEXING & MASKING
Masking allows you to use conditional filters to grab elements
mat = np.arrange(0,100).reshape(10,10)
# get specific number
mat[5,2]
mat[:,2]
mat[2,:]
# how to mask conditionals
mat[mat>50]