frequency as pandas string function
nosetest for frequency.py