Skip to content

DOC: correction of docstring dtypes/ftypes #5984

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 17, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions pandas/core/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down