PYTHON, NUMP AND PARK .edu
PYTHON, NUMPY, AND SPARK
Prof. Chris Jermaine
cmj4@cs.rice.edu
1
Next 1.5 Days
? Intro to Python for statistical/numerical programming (day one)
¡ª Focus on basic NumPy API, using arrays efficiently
¡ª Will take us through today
? Intro to cloud computing, Big Data computing
¡ª Focus on Amazon AWS (but other cloud providers similar)
¡ª Focus on Spark: Big Data platform for distributing Python/Java/Scala comps
? Will try to do all of this in context of interesting examples
¡ª With a focus on text processing
¡ª But ideas applicable to other problems
2
Python
? Old language, first appeared in 1991
¡ª But updated often over the years
? Important characteristics
¡ª Interpreted
¡ª Dynamically-typed
¡ª High level
¡ª Multi-paradigm (imperative, functional, OO)
¡ª Generally compact, readable, easy-to-use
? Boom on popularity last five years
¡ª Now the first PL learned in many CS departments
3
Python: Why So Popular for Data Science?
? Dynamic typing/interpreted
¡ª Type a command, get a result
¡ª No need for compile/execute/debug cycle
? Quite high-level: easy for non-CS people to pick up
¡ª Statisticians, mathematicians, physicists...
? More of a general-purpose PL than R
¡ª More reasonable target for larger applications
¡ª More reasonable as API for platforms such as Spark
? Can be used as lightweight wrapper on efficient numerical codes
¡ª Unlike Java, for example
4
First Python Example
? Since Python is interpreted, can just fire up Python shell
¡ª Then start typing
? Ex, fire up shell and type (exactly!)
def Factorial (n):
if n == 1 or n == 0:
return 1
else:
return n * Factorial (n - 1)
Factorial (12)
? Will print out 12 factorial
5
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- python programming for data processing and climate umd
- using python like matlab and mathematica
- python nump and park edu
- numpy arrays marquette university
- python for loop append numpy array weebly
- legate numpy accelerated and distributed array computing
- creating simple array and converting to numpy array
- matlab commands in numerical python numpy
- numerical and scientific computing in python bu
- lab numerics with numpy day 1 university of montana
Related searches
- python permutations and combinations
- python probability and statistics
- department of elementary and secondary edu mo
- python sin and cos
- python class and method examples
- python create and write file
- python find and replace string
- python find and replace characters
- python search and replace text
- python search and replace file
- python commands and functions pdf
- python using and in if statement