Path: blob/master/lessons/lesson_02/code/numpy-and-pandas.ipynb
1904 views
Agenda
Numpy
Pandas
Lab
Introduction
Create a new notebook for your code-along:
From our submission directory, type:
From the IPython Dashboard, open a new notebook. Change the title to: "Numpy and Pandas"
Introduction to Numpy
Overview
ndarray
Indexing and Slicing
Numpy Overview
Why Python for Data? Numpy brings decades of C math into Python!
Numpy provides a wrapper for extensive C/C++/Fortran codebases, used for data analysis functionality
NDAarray allows easy vectorized math and broadcasting (i.e. functions for vector elements of different shapes)
Creating ndarrays
An array object represents a multidimensional, homogeneous array of fixed-size items.
What are these functions?
Indexing, Slicing and Iterating
Introduction to Pandas
Object Creation
Viewing data
Selection
Missing data
Grouping
Reshaping
Time series
Plotting
i/o
Pandas Overview
Source: pandas.pydata.org
Viewing Data
Selection
Boolean Indexing
Setting
Missing Data
Operations
Applying functions
Merge
Grouping
Reshaping
Time Series
Plotting
I/O
I/O is straightforward with, for example, pd.read_csv or df.to_csv
The benefits of open source:
Let's look under x's in plt modules
Next Steps
Recommended Resources
Name | Description |
---|---|
Official Pandas Tutorials | Wes & Company's selection of tutorials and lectures |
Julia Evans Pandas Cookbook | Great resource with examples from weather, bikes and 311 calls |
Learn Pandas Tutorials | A great series of Pandas tutorials from Dave Rojas |
Research Computing Python Data PYNBs | A super awesome set of python notebooks from a meetup-based course exclusively devoted to pandas |