Skip to content

Commit 54a548f

Browse files
committed
Merge pull request #5984 from jorisvandenbossche/doc-dtypes
DOC: correction of docstring dtypes/ftypes
2 parents ccd26bb + 36f35b8 commit 54a548f

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

pandas/core/generic.py

+7-4
Original file line numberDiff line numberDiff line change
@@ -1748,24 +1748,27 @@ def get_values(self):
17481748
return self.as_matrix()
17491749

17501750
def get_dtype_counts(self):
1751-
""" return the counts of dtypes in this object """
1751+
""" Return the counts of dtypes in this object """
17521752
from pandas import Series
17531753
return Series(self._data.get_dtype_counts())
17541754

17551755
def get_ftype_counts(self):
1756-
""" return the counts of ftypes in this object """
1756+
""" Return the counts of ftypes in this object """
17571757
from pandas import Series
17581758
return Series(self._data.get_ftype_counts())
17591759

17601760
@property
17611761
def dtypes(self):
1762-
""" return the counts of dtypes in this object """
1762+
""" Return the dtypes in this object """
17631763
from pandas import Series
17641764
return Series(self._data.get_dtypes(),index=self._info_axis)
17651765

17661766
@property
17671767
def ftypes(self):
1768-
""" return the counts of ftypes in this object """
1768+
"""
1769+
Return the ftypes (indication of sparse/dense and dtype)
1770+
in this object.
1771+
"""
17691772
from pandas import Series
17701773
return Series(self._data.get_ftypes(),index=self._info_axis)
17711774

0 commit comments

Comments
 (0)