File tree Expand file tree Collapse file tree 2 files changed +0
-13
lines changed Expand file tree Collapse file tree 2 files changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -5,16 +5,8 @@ from pandas._typing import (
5
5
FilePath ,
6
6
ReadPickleBuffer ,
7
7
StorageOptions ,
8
- WriteBuffer ,
9
8
)
10
9
11
- def to_pickle (
12
- obj : object ,
13
- filepath_or_buffer : FilePath | WriteBuffer [bytes ],
14
- compression : CompressionOptions = ...,
15
- protocol : int = ...,
16
- storage_options : StorageOptions = ...,
17
- ) -> None : ...
18
10
def read_pickle (
19
11
filepath_or_buffer : FilePath | ReadPickleBuffer ,
20
12
compression : CompressionOptions = ...,
Original file line number Diff line number Diff line change 47
47
48
48
from tests import check
49
49
50
- from pandas .io .api import to_pickle
51
50
from pandas .io .clipboard import PyperclipException
52
51
from pandas .io .common import IOHandles
53
52
from pandas .io .json ._json import JsonReader
@@ -125,10 +124,6 @@ def test_pickle():
125
124
check (assert_type (DF .to_pickle (path ), None ), type (None ))
126
125
check (assert_type (read_pickle (path ), Any ), DataFrame )
127
126
128
- with ensure_clean () as path :
129
- check (assert_type (to_pickle (DF , path ), None ), type (None ))
130
- check (assert_type (read_pickle (path ), Any ), DataFrame )
131
-
132
127
133
128
def test_pickle_file_handle ():
134
129
with ensure_clean () as path :
You can’t perform that action at this time.
0 commit comments