@@ -80,6 +80,10 @@ def to_msgpack(path_or_buf, *args, **kwargs):
80
80
81
81
.. deprecated:: 0.25.0
82
82
83
+ to_msgpack is deprecated and will be removed in a future version.
84
+ It is recommended to use pyarrow for on-the-wire transmission of
85
+ pandas objects.
86
+
83
87
Parameters
84
88
----------
85
89
path_or_buf : string File path, buffer-like, or None
@@ -91,11 +95,11 @@ def to_msgpack(path_or_buf, *args, **kwargs):
91
95
compress : type of compressor (zlib or blosc), default to None (no
92
96
compression)
93
97
"""
94
- warnings .warn ("The read_msgpack is deprecated and will be removed in a "
98
+ warnings .warn ("to_msgpack is deprecated and will be removed in a "
95
99
"future version.\n "
96
100
"It is recommended to use pyarrow for on-the-wire "
97
101
"transmission of pandas objects." ,
98
- FutureWarning , stacklevel = 2 )
102
+ FutureWarning , stacklevel = 3 )
99
103
100
104
global compressor
101
105
compressor = kwargs .pop ('compress' , None )
@@ -128,6 +132,10 @@ def read_msgpack(path_or_buf, encoding='utf-8', iterator=False, **kwargs):
128
132
129
133
.. deprecated:: 0.25.0
130
134
135
+ read_msgpack is deprecated and will be removed in a future version.
136
+ It is recommended to use pyarrow for on-the-wire transmission of
137
+ pandas objects.
138
+
131
139
Parameters
132
140
----------
133
141
path_or_buf : string File path, BytesIO like or string
@@ -148,7 +156,7 @@ def read_msgpack(path_or_buf, encoding='utf-8', iterator=False, **kwargs):
148
156
"future version.\n "
149
157
"It is recommended to use pyarrow for on-the-wire "
150
158
"transmission of pandas objects." ,
151
- FutureWarning , stacklevel = 2 )
159
+ FutureWarning , stacklevel = 3 )
152
160
153
161
path_or_buf , _ , _ , should_close = get_filepath_or_buffer (path_or_buf )
154
162
if iterator :
0 commit comments