From 36f35b8ce324a243ac59beed78a876f29b4bfd50 Mon Sep 17 00:00:00 2001 From: Joris Van den Bossche Date: Fri, 17 Jan 2014 11:05:23 +0100 Subject: [PATCH] DOC: correction of docstring dtypes/ftypes --- pandas/core/generic.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pandas/core/generic.py b/pandas/core/generic.py index bdd2e3a2683cc..9dcf5290d29b5 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -1748,24 +1748,27 @@ def get_values(self): return self.as_matrix() def get_dtype_counts(self): - """ return the counts of dtypes in this object """ + """ Return the counts of dtypes in this object """ from pandas import Series return Series(self._data.get_dtype_counts()) def get_ftype_counts(self): - """ return the counts of ftypes in this object """ + """ Return the counts of ftypes in this object """ from pandas import Series return Series(self._data.get_ftype_counts()) @property def dtypes(self): - """ return the counts of dtypes in this object """ + """ Return the dtypes in this object """ from pandas import Series return Series(self._data.get_dtypes(),index=self._info_axis) @property def ftypes(self): - """ return the counts of ftypes in this object """ + """ + Return the ftypes (indication of sparse/dense and dtype) + in this object. + """ from pandas import Series return Series(self._data.get_ftypes(),index=self._info_axis)