linearmodels.panel.data._Panel¶
- class _Panel(df)[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
- df
Notes
Contains the logic needed to transform a MI DataFrame with 2 levels into a minimal pandas Panel-like object
- Attributes:
- items
- major_axis
- minor_axis
- shape
- values
Methods
from_array
(values, items, major_axis, minor_axis)to_frame
()Properties