@@ -158,7 +158,7 @@ class Series(base.IndexOpsMixin, generic.NDFrame):
158158 _deprecations = (
159159 base .IndexOpsMixin ._deprecations
160160 | generic .NDFrame ._deprecations
161- | frozenset (["compress" , "valid" , "real" , "imag" , "put" , " ptp" , "nonzero " ])
161+ | frozenset (["compress" , "ptp" ])
162162 )
163163
164164 # Override cache_readonly bc Series is mutable
@@ -528,23 +528,6 @@ def compress(self, condition, *args, **kwargs):
528528 nv .validate_compress (args , kwargs )
529529 return self [condition ]
530530
531- def put (self , * args , ** kwargs ):
532- """
533- Apply the `put` method to its `values` attribute if it has one.
534-
535- .. deprecated:: 0.25.0
536-
537- See Also
538- --------
539- numpy.ndarray.put
540- """
541- warnings .warn (
542- "`put` has been deprecated and will be removed in a future version." ,
543- FutureWarning ,
544- stacklevel = 2 ,
545- )
546- self ._values .put (* args , ** kwargs )
547-
548531 def __len__ (self ) -> int :
549532 """
550533 Return the length of the Series.
@@ -777,46 +760,6 @@ def __array__(self, dtype=None):
777760 # ----------------------------------------------------------------------
778761 # Unary Methods
779762
780- @property
781- def real (self ):
782- """
783- Return the real value of vector.
784-
785- .. deprecated:: 0.25.0
786- """
787- warnings .warn (
788- "`real` is deprecated and will be removed in a future version. "
789- "To eliminate this warning for a Series `ser`, use "
790- "`np.real(ser.to_numpy())` or `ser.to_numpy().real`." ,
791- FutureWarning ,
792- stacklevel = 2 ,
793- )
794- return self .values .real
795-
796- @real .setter
797- def real (self , v ):
798- self .values .real = v
799-
800- @property
801- def imag (self ):
802- """
803- Return imag value of vector.
804-
805- .. deprecated:: 0.25.0
806- """
807- warnings .warn (
808- "`imag` is deprecated and will be removed in a future version. "
809- "To eliminate this warning for a Series `ser`, use "
810- "`np.imag(ser.to_numpy())` or `ser.to_numpy().imag`." ,
811- FutureWarning ,
812- stacklevel = 2 ,
813- )
814- return self .values .imag
815-
816- @imag .setter
817- def imag (self , v ):
818- self .values .imag = v
819-
820763 # coercion
821764 __float__ = _coerce_method (float )
822765 __long__ = _coerce_method (int )
0 commit comments