File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -160,11 +160,14 @@ def read_pickle(
160160
161161 Notes
162162 -----
163- read_pickle is only guaranteed to be backwards compatible to pandas 0.20.3.
163+ read_pickle is only guaranteed to be backwards compatible to pandas 0.20.3
164+ provided the object was serialized with to_pickle.
164165
165166 Examples
166167 --------
167- >>> original_df = pd.DataFrame({{"foo": range(5), "bar": range(5, 10)}}) # doctest: +SKIP
168+ >>> original_df = pd.DataFrame(
169+ ... {{"foo": range(5), "bar": range(5, 10)}}
170+ ... ) # doctest: +SKIP
168171 >>> original_df # doctest: +SKIP
169172 foo bar
170173 0 0 5
@@ -182,7 +185,7 @@ def read_pickle(
182185 2 2 7
183186 3 3 8
184187 4 4 9
185- """ # noqa: E501
188+ """
186189 excs_to_catch = (AttributeError , ImportError , ModuleNotFoundError , TypeError )
187190 with get_handle (
188191 filepath_or_buffer ,
You can’t perform that action at this time.
0 commit comments