pyphi.models.pandas.ToPandasMixin#
- class pyphi.models.pandas.ToPandasMixin[source]#
Bases:
objectExport a result object to a labeled Pandas structure.
to_pandas()returns aDataFrame: one row for a single object, so that rows from different results concatenate, and one row per element for collections and distributions, with a defaultRangeIndex. Mechanisms and purviews render as tuples of labels;subsetandnode_indicescolumns hold sorted unit indices. Subclasses implement_pandas_record()(single objects, which inherit the one-row_to_pandas) or override_to_pandas()(collections and distributions).