Python Pandas -- Panel

Pandas 中一维 series, 二维DataFrame, 三维Panel

class pandas.Panel(data=Noneitems=Nonemajor_axis=Noneminor_axis=Nonecopy=Falsedtype=None)[source]

Represents wide format panel data, stored as 3-dimensional array

Parameters:

data : ndarray (items x major x minor), or dict of DataFrames

items : Index or array-like

axis=0

major_axis : Index or array-like

axis=1

minor_axis : Index or array-like

axis=2

dtype : dtype, default None

Data type to force, otherwise infer

copy : boolean, default False

Copy data from inputs. Only affects DataFrame / 2d ndarray input

posted @ 2018-04-12 16:09  Jesse_Li  阅读(372)  评论(0编辑  收藏  举报