Pandas tips & tricks
func
is called on each element of the object index but first on the whole index to check the returned type:
Groupy class methods (see Appendix for the definition of functions types)
groupby.agg(reducing function)
groupby.transform(transforming function)
groupby.apply(potentially-size-changing function)
resample()
rolling()
expanding()
Types of functions:
L = []
from copy import deepcopy
def foo(*args, **kwargs):
L.append({'args': deepcopy([*args]), 'kwargs': deepcopy({**kwargs})})
return None
Frequencies
-----------
pd.tseries.frequencies
Offset
------
pd.tseries.offsets
Complex patterns
----------------
http://stackoverflow.com/questions/39967460/using-pandas-to-create-dateoffset-of-paydays