DOC: add demo of factorize

Here is some documentation of `factorize`, per [this request](http://stackoverflow.com/questions/20619851/pandas-equivalent-of-statas-encode/20619971?noredirect=1#comment30860849_20619971).