linearmodels.panel.data._Panel

class linearmodels.panel.data._Panel(df: DataFrame)[source]

Convert a MI DataFrame to a 3-d structure where columns are items.

This class is for internal use only and is a legacy shim related to the removed pandas Panel class.

Parameters:
df: DataFrame

MultiIndex DataFrame containing floats

Notes

Contains the logic needed to transform a MI DataFrame with 2 levels into a minimal pandas Panel-like object

Methods

from_array(values, items, major_axis, minor_axis)

to_frame()

Properties

items

major_axis

minor_axis

shape

values