Panel4D.transpose()

Panel4D.transpose(*args, **kwargs) [source] Permute the dimensions of the Panel Parameters: args : three positional arguments: each oneof {0, 1, 2, ?items?, ?major_axis?, ?minor_axis?} copy : boolean, default False Make a copy of the underlying data. Mixed-dtype data will always result in a copy Returns: y : same as input Examples >>> p.transpose(2, 0, 1) >>> p.transpose(2, 0, 1, copy=True)

Panel4D.to_xarray()

Panel4D.to_xarray() [source] Return an xarray object from the pandas object. Returns: a DataArray for a Series a Dataset for a DataFrame a DataArray for higher dims Notes See the xarray docs Examples >>> df = pd.DataFrame({'A' : [1, 1, 2], 'B' : ['foo', 'bar', 'foo'], 'C' : np.arange(4.,7)}) >>> df A B C 0 1 foo 4.0 1 1 bar 5.0 2 2 foo 6.0 >>> df.to_xarray() <xarray.Dataset> Dimensions: (ind

Panel4D.to_sql()

Panel4D.to_sql(name, con, flavor=None, schema=None, if_exists='fail', index=True, index_label=None, chunksize=None, dtype=None) [source] Write records stored in a DataFrame to a SQL database. Parameters: name : string Name of SQL table con : SQLAlchemy engine or DBAPI2 connection (legacy mode) Using SQLAlchemy makes it possible to use any DB supported by that library. If a DBAPI2 object, only sqlite3 is supported. flavor : ?sqlite?, default None DEPRECATED: this parameter will be remo

Panel4D.to_sparse()

Panel4D.to_sparse(*args, **kwargs) [source]

Panel4D.to_pickle()

Panel4D.to_pickle(path) [source] Pickle (serialize) object to input file path. Parameters: path : string File path

Panel4D.to_msgpack()

Panel4D.to_msgpack(path_or_buf=None, encoding='utf-8', **kwargs) [source] msgpack (serialize) object to input file path THIS IS AN EXPERIMENTAL LIBRARY and the storage format may not be stable until a future release. Parameters: path : string File path, buffer-like, or None if None, return generated string append : boolean whether to append to an existing msgpack (default is False) compress : type of compressor (zlib or blosc), default to None (no compression)

Panel4D.to_long()

Panel4D.to_long(*args, **kwargs) [source]

Panel4D.to_json()

Panel4D.to_json(path_or_buf=None, orient=None, date_format='epoch', double_precision=10, force_ascii=True, date_unit='ms', default_handler=None, lines=False) [source] Convert the object to a JSON string. Note NaN?s and None will be converted to null and datetime objects will be converted to UNIX timestamps. Parameters: path_or_buf : the path or buffer to write the result string if this is None, return a StringIO of the converted string orient : string Seriesdefault is ?index? allowed va

Panel4D.to_hdf()

Panel4D.to_hdf(path_or_buf, key, **kwargs) [source] Write the contained data to an HDF5 file using HDFStore. Parameters: path_or_buf : the path (string) or HDFStore object key : string indentifier for the group in the store mode : optional, {?a?, ?w?, ?r+?}, default ?a? 'w' Write; a new file is created (an existing file with the same name would be deleted). 'a' Append; an existing file is opened for reading and writing, and if the file does not exist it is created. 'r+' It is

Panel4D.to_frame()

Panel4D.to_frame(*args, **kwargs) [source]