pandas.read_pickle(path, compression='infer')[source]

Load pickled pandas object (or any other pickled object) from the specified file path

Warning: Loading pickled data received from untrusted sources can be unsafe. See:


path : string

File path

compression : {‘infer’, ‘gzip’, ‘bz2’, ‘xz’, ‘zip’, None}, default ‘infer’

For on-the-fly decompression of on-disk data. If ‘infer’, then use gzip, bz2, xz or zip if path ends in ‘.gz’, ‘.bz2’, ‘.xz’, or ‘.zip’ respectively, and no decompression otherwise. Set to None for no decompression.

New in version 0.20.0.


unpickled : type of object stored in file

Scroll To Top