File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -160,11 +160,14 @@ def read_pickle(
160
160
161
161
Notes
162
162
-----
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.
164
165
165
166
Examples
166
167
--------
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
168
171
>>> original_df # doctest: +SKIP
169
172
foo bar
170
173
0 0 5
@@ -182,7 +185,7 @@ def read_pickle(
182
185
2 2 7
183
186
3 3 8
184
187
4 4 9
185
- """ # noqa: E501
188
+ """
186
189
excs_to_catch = (AttributeError , ImportError , ModuleNotFoundError , TypeError )
187
190
with get_handle (
188
191
filepath_or_buffer ,
You can’t perform that action at this time.
0 commit comments