Slide 1

Slide 1 text

Intro Demo Case for Python for Data Sneakpeek into upcoming Summary Interactive analysis of data using Pandas, Matplotlib in an IPython Notebook. Lakshman Prasad (twitter.com/becomingGuru) The Fifth Elephant July 13, 2013, Bangalore

Slide 2

Slide 2 text

These slides are online: http://j.mp/fifthel-python

Slide 3

Slide 3 text

Analysis notebook viewable online: http://j.mp/fifthel-usesthis

Slide 4

Slide 4 text

Intro Demo Case for Python for Data Sneakpeek into upcoming Summary Intro Demo Case for Python for Data Sneakpeek into upcoming Summary

Slide 5

Slide 5 text

How many of you use Hadoop Clusters?

Slide 6

Slide 6 text

How many of you use Hadoop Clusters for data under 500 GB?

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

”Big Data” term encompasses a spectrum of tools and technologies

Slide 9

Slide 9 text

IPython notebook

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

Interviews of 373 influential people, 72 categories, 5066 user-wares

Slide 12

Slide 12 text

on the Hardware they use ...

Slide 13

Slide 13 text

... and the Software

Slide 14

Slide 14 text

Demo Time!

Slide 15

Slide 15 text

Intro Demo Case for Python for Data Sneakpeek into upcoming Summary Popular Headphones!

Slide 16

Slide 16 text

US social security Database: Popular names

Slide 17

Slide 17 text

Intro Demo Case for Python for Data Sneakpeek into upcoming Summary DataFrame all Names years = range (1880 ,2012) frames = [ ] for year in years : frame = pd . r e a d c s v ( ’ / path /yob%d . t x t ’%year , names=[ ’name ’ , ’ sex ’ , ’ b i r t h s ’ ] ) frame [ ’ year ’ ] = year frames . append ( frame ) names = pd . concat ( frames , i g n o r e i n d e x=True ) t o t a l b i r t h s = names . p i v o t t a b l e ( ’ b i r t h s ’ , \ rows=’ year ’ , c o l s=’ sex ’ , aggfunc=sum) t o t a l b i r t h s . p l o t ()

Slide 18

Slide 18 text

Intro Demo Case for Python for Data Sneakpeek into upcoming Summary Births across the century

Slide 19

Slide 19 text

Intro Demo Case for Python for Data Sneakpeek into upcoming Summary Popularity changing across the century

Slide 20

Slide 20 text

Intro Demo Case for Python for Data Sneakpeek into upcoming Summary Plot popularity names p = names . p i v o t t a b l e ( ’ b i r t h s ’ , rows=’name ’ , aggfunc=sum) top names = names p . order ()[ −5:] names by year = names . p i v o t t a b l e ( ’ b i r t h s ’ , rows=’ year ’ , c o l s=’name ’ , aggfunc=sum) names by year [ top names ] . p l o t ( s u b p l o t s=True )

Slide 21

Slide 21 text

Intro Demo Case for Python for Data Sneakpeek into upcoming Summary Case for Python for Data

Slide 22

Slide 22 text

Intro Demo Case for Python for Data Sneakpeek into upcoming Summary Supports parallel processing in clusters

Slide 23

Slide 23 text

Packages on networking, web, IO...

Slide 24

Slide 24 text

Managing clusters of machines (unless you need so many) is a chore

Slide 25

Slide 25 text

Intro Demo Case for Python for Data Sneakpeek into upcoming Summary XKCD.com/552

Slide 26

Slide 26 text

Already a prevelant wisdom

Slide 27

Slide 27 text

”Don’t go where the puck is; go where the puck is going to be”

Slide 28

Slide 28 text

Newer, Faster, Better versions of the entire stack

Slide 29

Slide 29 text

Rapid pace of development

Slide 30

Slide 30 text

No content

Slide 31

Slide 31 text

Dynamic D3 visualizations from within the notebook.

Slide 32

Slide 32 text

Intro Demo Case for Python for Data Sneakpeek into upcoming Summary In Summary • Moores Law curve stands at pretty good levels today.

Slide 33

Slide 33 text

Intro Demo Case for Python for Data Sneakpeek into upcoming Summary In Summary • Moores Law curve stands at pretty good levels today. • Beyond a certain point, what you need is not necessarily more data, but right data.

Slide 34

Slide 34 text

Intro Demo Case for Python for Data Sneakpeek into upcoming Summary In Summary • Moores Law curve stands at pretty good levels today. • Beyond a certain point, what you need is not necessarily more data, but right data. • Python data tools support clustering. Utilise it when you need it.

Slide 35

Slide 35 text

Intro Demo Case for Python for Data Sneakpeek into upcoming Summary In Summary • Moores Law curve stands at pretty good levels today. • Beyond a certain point, what you need is not necessarily more data, but right data. • Python data tools support clustering. Utilise it when you need it. • Tools in Python: Pandas, Numpy, Matplotlib are potent toolkit for your data problems

Slide 36

Slide 36 text

Intro Demo Case for Python for Data Sneakpeek into upcoming Summary In Summary • Moores Law curve stands at pretty good levels today. • Beyond a certain point, what you need is not necessarily more data, but right data. • Python data tools support clustering. Utilise it when you need it. • Tools in Python: Pandas, Numpy, Matplotlib are potent toolkit for your data problems • Python tools are improving themselves at a rapid pace

Slide 37

Slide 37 text

Intro Demo Case for Python for Data Sneakpeek into upcoming Summary In Summary • Moores Law curve stands at pretty good levels today. • Beyond a certain point, what you need is not necessarily more data, but right data. • Python data tools support clustering. Utilise it when you need it. • Tools in Python: Pandas, Numpy, Matplotlib are potent toolkit for your data problems • Python tools are improving themselves at a rapid pace • Python data toolkit is very good at interoperability with other technologies - particularly, R

Slide 38

Slide 38 text

Either selling you something, or ...

Slide 39

Slide 39 text

Intro Demo Case for Python for Data Sneakpeek into upcoming Summary Dilbert gets it right!

Slide 40

Slide 40 text

Intro Demo Case for Python for Data Sneakpeek into upcoming Summary Image Attributions http ://www. f l i c k r . com/ photos / h i n k e l s t o n e /2765597758 http ://www. f l i c k r . com/ photos /25521149@N03/2491915744 http ://www. f l i c k r . com/ photos /50764322@N04/8378057370 http ://www. f l i c k r . com/ photos /micahdowty /3866958782 http ://www. f l i c k r . com/ photos /81512202@N05/7468442446 http ://www. f l i c k r . com/ photos / marlenek /2051394370 http ://www. f l i c k r . com/ photos / t e j e d o r o d e l u z /3157690060/ http ://www. f l i c k r . com/ photos /23820645@N05/4287681570/ http ://www. f l i c k r . com/ photos / a i d a n j o n e s /3575000735/ http ://www. f l i c k r . com/ photos /go /253819/ http ://www. f l i c k r . com/ photos / o r i n r o b e r t j o h n /114430223/

Slide 41

Slide 41 text