Closed
Description
Location of the documentation
- https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.to_pickle.html
- https://pandas.pydata.org/pandas-docs/dev/reference/api/pandas.DataFrame.to_pickle.html (same as stable)
Documentation problem
The docstring states DataFrame.to_pickle(path, compression='infer', protocol=5, storage_options=None)
noting protocol 5 by default, the Parameters following text notes "The possible values are 0, 1, 2, 3, 4" which does not include protocol 5.
Suggested fix for documentation
Add "5" to the docs: "The possible values are 0, 1, 2, 3, 4, 5" which was included from Python 3.8 https://docs.python.org/3/library/pickle.html