NumPy Refresher

21
NumPy Refresher why and how to use NumPy 28 Nov 2013 @lukmdo Photo by Tony Delgrosso used under CC BY-NC-SA 2.0 /“Tile+Crop”

description

numpy warmup (API and key concepts) ~10min HTML version: https://dl.dropboxusercontent.com/u/1565687/speak/NumPy%20Refresher/index.html

Transcript of NumPy Refresher

Page 1: NumPy Refresher

NumPy Refresherwhy and how to use NumPy

28 Nov 2013 @lukmdo

Photo by Tony Delgrosso used under CC BY-NC-SA 2.0 /“Tile+Crop”

Page 9: NumPy Refresher

Why? (descriptive)constructors = .copy(), array(), ndarray(), matrix(), empty(), empty_like(), zeros(), zeros_like(), ones(), ones_like(), fill(), arange(), linespace(), eye() !selectors = take(), where(), choose() !shapes = .shape, .reshape(), .resize(), .flatten(), .ravel(), .flat, .T, .transpose(), hstack(), vstack(), concentrate(), hsplit(), vsplit(), split() !types = .dtype, .astype(), dtype() !methods = .sum(), .min(), .max(), average(), var() ... !modules = linalg, random, polynomial, fft, ...

Page 21: NumPy Refresher

Linkswww.numpy.org

docs.scipy.org/doc/numpy/

scipy-lectures.github.io

pydata.org

scikit-learn.org

scikit-image.org

statsmodels.sourceforge.net

orange.biolab.si

pandas.pydata.org

blaze.pydata.org

www.sagemath.org

Photo by Tony Delgrosso used under CC BY-NC-SA 2.0 /“Tile+Crop”