File tree 4 files changed +1
-55
lines changed
4 files changed +1
-55
lines changed Original file line number Diff line number Diff line change @@ -712,6 +712,7 @@ Removal of prior version deprecations/changes
712
712
- Remove ``kind`` in ``read_excel/ExcelFile`` as its unused (:issue:`4712`)
713
713
- Remove ``infer_type`` keyword from ``pd.read_html`` as its unused (:issue:`4770`, :issue:`7032`)
714
714
- Remove ``offset`` and ``timeRule`` keywords from ``Series.tshift/shift``, in favor of ``freq`` (:issue:`4853`, :issue:`4864`)
715
+ - Remove ``pd.load/pd.save`` aliases in favor of ``pd.to_pickle/pd.read_pickle`` (:issue:`3787`)
715
716
716
717
.. _whatsnew_0170.performance:
717
718
Original file line number Diff line number Diff line change 29
29
from pandas .tseries .period import Period , PeriodIndex
30
30
31
31
# legacy
32
- from pandas .core .common import save , load # deprecated, remove in 0.13
33
32
import pandas .core .datetools as datetools
34
33
35
34
from pandas .core .config import (get_option , set_option , reset_option ,
Original file line number Diff line number Diff line change @@ -3313,46 +3313,6 @@ def console_encode(object, **kwds):
3313
3313
return pprint_thing_encoded (object ,
3314
3314
get_option ("display.encoding" ))
3315
3315
3316
-
3317
- def load (path ): # TODO remove in 0.13
3318
- """
3319
- Load pickled pandas object (or any other pickled object) from the specified
3320
- file path
3321
-
3322
- Warning: Loading pickled data received from untrusted sources can be
3323
- unsafe. See: http://docs.python.org/2.7/library/pickle.html
3324
-
3325
- Parameters
3326
- ----------
3327
- path : string
3328
- File path
3329
-
3330
- Returns
3331
- -------
3332
- unpickled : type of object stored in file
3333
- """
3334
- import warnings
3335
- warnings .warn ("load is deprecated, use read_pickle" , FutureWarning )
3336
- from pandas .io .pickle import read_pickle
3337
- return read_pickle (path )
3338
-
3339
-
3340
- def save (obj , path ): # TODO remove in 0.13
3341
- """
3342
- Pickle (serialize) object to input file path
3343
-
3344
- Parameters
3345
- ----------
3346
- obj : any object
3347
- path : string
3348
- File path
3349
- """
3350
- import warnings
3351
- warnings .warn ("save is deprecated, use obj.to_pickle" , FutureWarning )
3352
- from pandas .io .pickle import to_pickle
3353
- return to_pickle (obj , path )
3354
-
3355
-
3356
3316
def _maybe_match_name (a , b ):
3357
3317
a_has = hasattr (a , 'name' )
3358
3318
b_has = hasattr (b , 'name' )
Original file line number Diff line number Diff line change @@ -1006,20 +1006,6 @@ def to_pickle(self, path):
1006
1006
from pandas .io .pickle import to_pickle
1007
1007
return to_pickle (self , path )
1008
1008
1009
- def save (self , path ): # TODO remove in 0.14
1010
- "Deprecated. Use to_pickle instead"
1011
- import warnings
1012
- from pandas .io .pickle import to_pickle
1013
- warnings .warn ("save is deprecated, use to_pickle" , FutureWarning )
1014
- return to_pickle (self , path )
1015
-
1016
- def load (self , path ): # TODO remove in 0.14
1017
- "Deprecated. Use read_pickle instead."
1018
- import warnings
1019
- from pandas .io .pickle import read_pickle
1020
- warnings .warn ("load is deprecated, use pd.read_pickle" , FutureWarning )
1021
- return read_pickle (path )
1022
-
1023
1009
def to_clipboard (self , excel = None , sep = None , ** kwargs ):
1024
1010
"""
1025
1011
Attempt to write text representation of object to the system clipboard
You can’t perform that action at this time.
0 commit comments