from_pickle¶
- classmethod TimeSeriesDataFrame.from_pickle(filepath_or_buffer: Any) TimeSeriesDataFrame[source]¶
Convenience method to read pickled time series dataframes. If the read pickle file refers to a plain pandas DataFrame, it will be cast to a TimeSeriesDataFrame.
Warning
Loading pickled data uses the Python
picklemodule under the hood, which can execute arbitrary code during deserialization. Only load pickle files that you created yourself or obtained from a fully trusted source. Never load pickle files from untrusted or unauthenticated sources, as a maliciously crafted file can compromise your system.- Parameters:
filepath_or_buffer (Any) – Filename provided as a string or an
IOBuffercontaining the pickled object.- Returns:
ts_df – The pickled time series dataframe.
- Return type: