Fixing dates
|
Importing data
CSV options: index_col='A', header=2, parse_dates=['D1', 'D2'], thousands="," Excel options: Cleaning data
New columns with apply
axis=0 is index, applies function to each column (e.g. sum down columns) axis=1 is columns, applies function to each row (e.g. sum across rows) each row or column in DataFrame or value in Series is passed to function args are passed as additional positional parameters to function |
Selecting data
Combining data sets
how/join=‘inner’,’outer’,’left’,’right’ left_on, right_on; suffixes=(‘_left’,’_right’) fill_method=‘ffill’ When forward filling data on multi-index, generally put date last to use the correct fill. Semi-joins
|