.. currentmodule:: pandas
.. ipython:: python :suppress: import numpy as np import random import os np.random.seed(123456) from pandas import * import pandas as pd randn = np.random.randn randint = np.random.randint np.set_printoptions(precision=4, suppress=True)
This is a respository for short and sweet example and links for useful pandas recipes. We encourage users to add to this documentation. This is a great First Pull Request.
Using loc and iloc in selections
Extending a panel along the minor axis
Creating a multi-index from a labeled frame
Slicing a multi-index with xs #2
Partial Selection, the need for sortedness
Prepending a level to a multiindex
Apply to different items in a group
Replacing values with groupby means
Sort by group with aggregation
Create multiple aggregated columns
TimeGrouping of values grouped across time
Resampling with custom periods
Resample intraday frame without adding new days
Reading the first few lines of a frame
Simple Queries with a Timestamp Index
Managing heteregenous data using a linked multiple table hierarchy
Merging on-disk tables with millions of rows