Skip to content

Commit 3ee3049

Browse files
author
Alex Volkov
committed
Revert "Capitalizing first letter of doc in pandas.Series"
This reverts commit 95a6ac2.
1 parent 75be68d commit 3ee3049

File tree

3 files changed

+21
-21
lines changed

3 files changed

+21
-21
lines changed

pandas/core/base.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ class IndexOpsMixin(object):
668668
__array_priority__ = 1000
669669

670670
def transpose(self, *args, **kwargs):
671-
""" Return the transpose, which is by definition self """
671+
""" return the transpose, which is by definition self """
672672
nv.validate_transpose(args, kwargs)
673673
return self
674674

@@ -692,18 +692,18 @@ def _is_homogeneous_type(self):
692692

693693
@property
694694
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 """
696696
return self._values.shape
697697

698698
@property
699699
def ndim(self):
700-
""" Return the number of dimensions of the underlying data,
700+
""" return the number of dimensions of the underlying data,
701701
by definition 1
702702
"""
703703
return 1
704704

705705
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
707707
scalar
708708
"""
709709
try:
@@ -715,49 +715,49 @@ def item(self):
715715

716716
@property
717717
def data(self):
718-
""" Return the data pointer of the underlying data """
718+
""" return the data pointer of the underlying data """
719719
warnings.warn("{obj}.data is deprecated and will be removed "
720720
"in a future version".format(obj=type(self).__name__),
721721
FutureWarning, stacklevel=2)
722722
return self.values.data
723723

724724
@property
725725
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 """
727727
warnings.warn("{obj}.itemsize is deprecated and will be removed "
728728
"in a future version".format(obj=type(self).__name__),
729729
FutureWarning, stacklevel=2)
730730
return self._ndarray_values.itemsize
731731

732732
@property
733733
def nbytes(self):
734-
""" Return the number of bytes in the underlying data """
734+
""" return the number of bytes in the underlying data """
735735
return self._values.nbytes
736736

737737
@property
738738
def strides(self):
739-
""" Return the strides of the underlying data """
739+
""" return the strides of the underlying data """
740740
warnings.warn("{obj}.strides is deprecated and will be removed "
741741
"in a future version".format(obj=type(self).__name__),
742742
FutureWarning, stacklevel=2)
743743
return self._ndarray_values.strides
744744

745745
@property
746746
def size(self):
747-
""" Return the number of elements in the underlying data """
747+
""" return the number of elements in the underlying data """
748748
return self._values.size
749749

750750
@property
751751
def flags(self):
752-
""" Return the ndarray.flags for the underlying data """
752+
""" return the ndarray.flags for the underlying data """
753753
warnings.warn("{obj}.flags is deprecated and will be removed "
754754
"in a future version".format(obj=type(self).__name__),
755755
FutureWarning, stacklevel=2)
756756
return self.values.flags
757757

758758
@property
759759
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
761761
shared
762762
"""
763763
warnings.warn("{obj}.base is deprecated and will be removed "
@@ -818,7 +818,7 @@ def max(self):
818818

819819
def argmax(self, axis=None):
820820
"""
821-
Return a ndarray of the maximum argument indexer
821+
return a ndarray of the maximum argument indexer
822822
823823
See Also
824824
--------
@@ -861,7 +861,7 @@ def min(self):
861861

862862
def argmin(self, axis=None):
863863
"""
864-
Return a ndarray of the minimum argument indexer
864+
return a ndarray of the minimum argument indexer
865865
866866
See Also
867867
--------
@@ -900,7 +900,7 @@ def __iter__(self):
900900

901901
@cache_readonly
902902
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 """
904904
return bool(isna(self).any())
905905

906906
def _reduce(self, op, name, axis=0, skipna=True, numeric_only=None,

pandas/core/generic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2331,7 +2331,7 @@ def to_hdf(self, path_or_buf, key, **kwargs):
23312331

23322332
def to_msgpack(self, path_or_buf=None, encoding='utf-8', **kwargs):
23332333
"""
2334-
Serialize object to input file path using msgpack format
2334+
msgpack (serialize) object to input file path
23352335
23362336
THIS IS AN EXPERIMENTAL LIBRARY and the storage format
23372337
may not be stable until a future release.

pandas/core/series.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -390,22 +390,22 @@ def name(self, value):
390390
# ndarray compatibility
391391
@property
392392
def dtype(self):
393-
""" Return the dtype object of the underlying data """
393+
""" return the dtype object of the underlying data """
394394
return self._data.dtype
395395

396396
@property
397397
def dtypes(self):
398-
""" Return the dtype object of the underlying data """
398+
""" return the dtype object of the underlying data """
399399
return self._data.dtype
400400

401401
@property
402402
def ftype(self):
403-
""" Return if the data is sparse|dense """
403+
""" return if the data is sparse|dense """
404404
return self._data.ftype
405405

406406
@property
407407
def ftypes(self):
408-
""" Return if the data is sparse|dense """
408+
""" return if the data is sparse|dense """
409409
return self._data.ftype
410410

411411
@property
@@ -443,7 +443,7 @@ def values(self):
443443

444444
@property
445445
def _values(self):
446-
""" Return the internal repr of this data """
446+
""" return the internal repr of this data """
447447
return self._data.internal_values()
448448

449449
def _formatting_values(self):
@@ -453,7 +453,7 @@ def _formatting_values(self):
453453
return self._data.formatting_values()
454454

455455
def get_values(self):
456-
""" Same as values (but handles sparseness conversions); is a view """
456+
""" same as values (but handles sparseness conversions); is a view """
457457
return self._data.get_values()
458458

459459
@property

0 commit comments

Comments
 (0)