File tree 2 files changed +16
-4
lines changed
2 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -4658,9 +4658,7 @@ See the `Full Documentation <https://github.com/wesm/feather>`__.
4658
4658
4659
4659
Write to a feather file.
4660
4660
4661
- .. TODO(Arrow 0.15): remove change these back to .. ipython blocks.
4662
-
4663
- .. code-block :: python
4661
+ .. ipython :: python
4664
4662
4665
4663
>> > df.to_feather(' example.feather' )
4666
4664
Original file line number Diff line number Diff line change 191
191
if pandas .compat .PY37 :
192
192
193
193
def __getattr__ (name ):
194
+ import warnings
195
+
194
196
if name == "Panel" :
195
- import warnings
196
197
197
198
warnings .warn (
198
199
"The Panel class is removed from pandas. Accessing it "
@@ -206,6 +207,13 @@ class Panel:
206
207
pass
207
208
208
209
return Panel
210
+ elif name in {"SparseSeries" , "SparseDataFrame" }:
211
+ warnings .warn ("The {} class is removed from pandas. Accessing it from "
212
+ "the top-level namespace will also be removed in the next "
213
+ "version" .format (name ), FutureWarning , stacklevel = 2 )
214
+
215
+ return type (name , (), {})
216
+
209
217
raise AttributeError ("module 'pandas' has no attribute '{}'" .format (name ))
210
218
211
219
@@ -214,6 +222,12 @@ class Panel:
214
222
class Panel :
215
223
pass
216
224
225
+ class SparseDataFrame :
226
+ pass
227
+
228
+ class SparseSeries :
229
+ pass
230
+
217
231
218
232
# module level doc-string
219
233
__doc__ = """
You can’t perform that action at this time.
0 commit comments