def get_dtype_counts(self):
    "\n        Return counts of unique dtypes in this object.\n\n        Returns\n        -------\n        dtype : Series\n            Series with the count of columns with each dtype.\n\n        See Also\n        --------\n        dtypes : Return the dtypes in this object.\n\n        Examples\n        --------\n        >>> a = [['a', 1, 1.0], ['b', 2, 2.0], ['c', 3, 3.0]]\n        >>> df = pd.DataFrame(a, columns=['str', 'int', 'float'])\n        >>> df\n          str  int  float\n        0   a    1    1.0\n        1   b    2    2.0\n        2   c    3    3.0\n\n        >>> df.get_dtype_counts()\n        float64    1\n        int64      1\n        object     1\n        dtype: int64\n        "
    from pandas import Series
    return Series(self._data.get_dtype_counts())
Return counts of unique dtypes in this object.

Returns
-------
dtype : Series
    Series with the count of columns with each dtype.

See Also
--------
dtypes : Return the dtypes in this object.

Examples
--------
>>> a = [['a', 1, 1.0], ['b', 2, 2.0], ['c', 3, 3.0]]
>>> df = pd.DataFrame(a, columns=['str', 'int', 'float'])
>>> df
  str  int  float
0   a    1    1.0
1   b    2    2.0
2   c    3    3.0

>>> df.get_dtype_counts()
float64    1
int64      1
object     1
dtype: int64
def get_dtype_counts(self):
    "\n        Return counts of unique dtypes in this object.\n\n        Returns\n        -------\n        dtype : Series\n            Series with the count of columns with each dtype.\n\n        See Also\n        --------\n        dtypes : Return the dtypes in this object.\n\n        Examples\n        --------\n        >>> a = [['a', 1, 1.0], ['b', 2, 2.0], ['c', 3, 3.0]]\n        >>> df = pd.DataFrame(a, columns=['str', 'int', 'float'])\n        >>> df\n          str  int  float\n        0   a    1    1.0\n        1   b    2    2.0\n        2   c    3    3.0\n\n        >>> df.get_dtype_counts()\n        float64    1\n        int64      1\n        object     1\n        dtype: int64\n        "
    from pandas import Series
    return Series(self._data.get_dtype_counts())