DataFrame.to_msgpack(self, path_or_buf=None, encoding='utf-8', **kwargs)[source]

Serialize object to input file path using msgpack format.

THIS IS AN EXPERIMENTAL LIBRARY and the storage format may not be stable until a future release.

pathstring File path, buffer-like, or None

if None, return generated string

appendbool whether to append to an existing msgpack

(default is False)

compresstype of compressor (zlib or blosc), default to None (no


None or str

If path_or_buf is None, returns the resulting msgpack format as a string. Otherwise returns None.

Scroll To Top