Although mainstream packages for empirical research in finance/economics are SAS, MATLAB, and Stata, I prefer python. There are not many updated documents and tutorials about python in its application to empirical research in finance/economics. Professor Kevin Sheppard's tutorial for Python in Econometrics is an excellent start, but its lecture notes have not kept pace on the fast growing of python packages. For example, some methods in the lecture notes will be deprecated soon according to the new documentation of pandas, such as DataFrame.ix
and Panel. Meanwhile, the documentation of pandas is voluminous and hard for researchers to grab essential information as fast as possible.
Therefore, I would like to create this file to keep a record on important objects, methods, and properties that I frequently encounter in my empirical research. It can be regarded as a cheatsheet for resea