mne-tools/mne-python — pull request #262 by dengemann (2012-12-13 01:34:51+00:00)
Title: WIP+ ENH: neater + richer pandas exporter + more concrete + detailed tutorial

I've be quite unhappy with the current epochs.as_data_frame for quite a while. Our recent activity related to #133 gave me some ideas how to make this ready for 0.5.

I dropped the support for Panel objects because I think selling the DataFrame to users is already enough. This makes everything significantly clearer, I hope.
Also I added scaling arguments as used in plot_evoked, this makes plotting with Pandase more fun, as otherwise the you often just would not see anything.
Finally I added an index argument that allows you to specify which of the info columns are added to the MultiIndex. If None is passed the ensuing DataFrame is equipped with categorial the factor colums 'condition', 'epoch', 'time' constituting a long table formatted DataFrame commonly used for repeated measure designs.

Finally, @Eric89GXL @christianmbrodbeck the example exposes how crazy Pandas magic can be used for pivoting data / reshaping data for factorial design, which again, points at our discussion on #133.

For consistency I will also add similar, but simpler exporters to raw and evoked (as already available for nitime)

Tell me what you think.