pandas.read_pickle
pandas 3.1.1 · Input and output · function
Restore a pickled Python object, such as a DataFrame. Load pickle files only from trusted sources.
Call syntax
pd.read_pickle(filepath_or_buffer, compression='infer', storage_options=None)Run the example
Edit the example and select Run Python to see the result.
Parameters
| Parameter | Requirement | Accepted values and behavior |
|---|---|---|
filepath_or_buffer |
Required Positional or keyword |
str, path object, or file-like object |
compression |
Optional Positional or keyword Default 'infer' |
str or dict Choose whether and how to compress or decompress data. |
storage_options |
Optional Positional or keyword Default None |
dict Pass storage-backend options such as connection settings or HTTP headers. |
Returns
object