@@ -668,7 +668,7 @@ class IndexOpsMixin(object):
668
668
__array_priority__ = 1000
669
669
670
670
def transpose (self , * args , ** kwargs ):
671
- """ Return the transpose, which is by definition self """
671
+ """ return the transpose, which is by definition self """
672
672
nv .validate_transpose (args , kwargs )
673
673
return self
674
674
@@ -692,18 +692,18 @@ def _is_homogeneous_type(self):
692
692
693
693
@property
694
694
def shape (self ):
695
- """ Return a tuple of the shape of the underlying data """
695
+ """ return a tuple of the shape of the underlying data """
696
696
return self ._values .shape
697
697
698
698
@property
699
699
def ndim (self ):
700
- """ Return the number of dimensions of the underlying data,
700
+ """ return the number of dimensions of the underlying data,
701
701
by definition 1
702
702
"""
703
703
return 1
704
704
705
705
def item (self ):
706
- """ Return the first element of the underlying data as a python
706
+ """ return the first element of the underlying data as a python
707
707
scalar
708
708
"""
709
709
try :
@@ -715,49 +715,49 @@ def item(self):
715
715
716
716
@property
717
717
def data (self ):
718
- """ Return the data pointer of the underlying data """
718
+ """ return the data pointer of the underlying data """
719
719
warnings .warn ("{obj}.data is deprecated and will be removed "
720
720
"in a future version" .format (obj = type (self ).__name__ ),
721
721
FutureWarning , stacklevel = 2 )
722
722
return self .values .data
723
723
724
724
@property
725
725
def itemsize (self ):
726
- """ Return the size of the dtype of the item of the underlying data """
726
+ """ return the size of the dtype of the item of the underlying data """
727
727
warnings .warn ("{obj}.itemsize is deprecated and will be removed "
728
728
"in a future version" .format (obj = type (self ).__name__ ),
729
729
FutureWarning , stacklevel = 2 )
730
730
return self ._ndarray_values .itemsize
731
731
732
732
@property
733
733
def nbytes (self ):
734
- """ Return the number of bytes in the underlying data """
734
+ """ return the number of bytes in the underlying data """
735
735
return self ._values .nbytes
736
736
737
737
@property
738
738
def strides (self ):
739
- """ Return the strides of the underlying data """
739
+ """ return the strides of the underlying data """
740
740
warnings .warn ("{obj}.strides is deprecated and will be removed "
741
741
"in a future version" .format (obj = type (self ).__name__ ),
742
742
FutureWarning , stacklevel = 2 )
743
743
return self ._ndarray_values .strides
744
744
745
745
@property
746
746
def size (self ):
747
- """ Return the number of elements in the underlying data """
747
+ """ return the number of elements in the underlying data """
748
748
return self ._values .size
749
749
750
750
@property
751
751
def flags (self ):
752
- """ Return the ndarray.flags for the underlying data """
752
+ """ return the ndarray.flags for the underlying data """
753
753
warnings .warn ("{obj}.flags is deprecated and will be removed "
754
754
"in a future version" .format (obj = type (self ).__name__ ),
755
755
FutureWarning , stacklevel = 2 )
756
756
return self .values .flags
757
757
758
758
@property
759
759
def base (self ):
760
- """ Return the base object if the memory of the underlying data is
760
+ """ return the base object if the memory of the underlying data is
761
761
shared
762
762
"""
763
763
warnings .warn ("{obj}.base is deprecated and will be removed "
@@ -818,7 +818,7 @@ def max(self):
818
818
819
819
def argmax (self , axis = None ):
820
820
"""
821
- Return a ndarray of the maximum argument indexer
821
+ return a ndarray of the maximum argument indexer
822
822
823
823
See Also
824
824
--------
@@ -861,7 +861,7 @@ def min(self):
861
861
862
862
def argmin (self , axis = None ):
863
863
"""
864
- Return a ndarray of the minimum argument indexer
864
+ return a ndarray of the minimum argument indexer
865
865
866
866
See Also
867
867
--------
@@ -900,7 +900,7 @@ def __iter__(self):
900
900
901
901
@cache_readonly
902
902
def hasnans (self ):
903
- """ Return if I have any nans; enables various perf speedups """
903
+ """ return if I have any nans; enables various perf speedups """
904
904
return bool (isna (self ).any ())
905
905
906
906
def _reduce (self , op , name , axis = 0 , skipna = True , numeric_only = None ,
0 commit comments