Panel4D

Constructor

Panel4D([data, labels, items, major_axis, ...]) Panel4D is a 4-Dimensional named container very much like a Panel, but having 4 named dimensions.

Serialization / IO / Conversion

Panel4D.to_xarray() Return an xarray object from the pandas object.

Attributes and underlying data

Axes

  • labels: axis 1; each label corresponds to a Panel contained inside
  • items: axis 2; each item corresponds to a DataFrame contained inside
  • major_axis: axis 3; the index (rows) of each of the DataFrames
  • minor_axis: axis 4; the columns of each of the DataFrames
Panel4D.values Numpy representation of NDFrame
Panel4D.axes Return index label(s) of the internal NDFrame
Panel4D.ndim Number of axes / array dimensions
Panel4D.size number of elements in the NDFrame
Panel4D.shape Return a tuple of axis dimensions
Panel4D.dtypes Return the dtypes in this object.
Panel4D.ftypes Return the ftypes (indication of sparse/dense and dtype) in this object.
Panel4D.get_dtype_counts() Return the counts of dtypes in this object.
Panel4D.get_ftype_counts() Return the counts of ftypes in this object.

Conversion

Panel4D.astype(dtype[, copy, raise_on_error]) Cast object to input numpy.dtype
Panel4D.copy([deep]) Make a copy of this objects data.
Panel4D.isnull() Return a boolean same-sized object indicating if the values are null.
Panel4D.notnull() Return a boolean same-sized object indicating if the values are not null.