pyphi.models.pandas.ToPandasMixin#

class pyphi.models.pandas.ToPandasMixin[source]#

Bases: object

Export a result object to a labeled Pandas structure.

to_pandas() returns a DataFrame: one row for a single object, so that rows from different results concatenate, and one row per element for collections and distributions, with a default RangeIndex. Mechanisms and purviews render as tuples of labels; subset and node_indices columns hold sorted unit indices. Subclasses implement _pandas_record() (single objects, which inherit the one-row _to_pandas) or override _to_pandas() (collections and distributions).

to_pandas()[source]#

Return a labeled Pandas view of this object.

Return type:

DataFrame