Some initial functions for mda model in pandas.