Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f887eb0 commit 6e9651eCopy full SHA for 6e9651e
pandas/_testing.py
@@ -122,9 +122,9 @@ def round_trip_pickle(
122
_path = path
123
if _path is None:
124
_path = f"__{rands(10)}__.pickle"
125
- with ensure_clean(_path) as path:
126
- pd.to_pickle(obj, _path)
127
- return pd.read_pickle(_path)
+ with ensure_clean(_path) as temp_path:
+ pd.to_pickle(obj, temp_path)
+ return pd.read_pickle(temp_path)
128
129
130
def round_trip_pathlib(writer, reader, path: Optional[str] = None):
0 commit comments