def get_dtype_counts(self) -> pd.Series:
    "\n        Return counts of unique dtypes in this object.\n\n        .. deprecated:: 0.14.0\n\n        Returns\n        -------\n        dtype : pd.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], ['b', 2, 2], ['c', 3, 3]]\n        >>> df = ps.DataFrame(a, columns=['str', 'int1', 'int2'])\n        >>> df\n          str  int1  int2\n        0   a     1     1\n        1   b     2     2\n        2   c     3     3\n\n        >>> df.get_dtype_counts().sort_values()\n        object    1\n        int64     2\n        dtype: int64\n\n        >>> df.str.get_dtype_counts().sort_values()\n        object    1\n        dtype: int64\n        "
    warnings.warn('`get_dtype_counts` has been deprecated and will be removed in a future version. For DataFrames use `.dtypes.value_counts()', FutureWarning)
    if (not isinstance(self.dtypes, Iterable)):
        dtypes = [self.dtypes]
    else:
        dtypes = list(self.dtypes)
    return pd.Series(dict(Counter([d.name for d in dtypes])))
Return counts of unique dtypes in this object.

.. deprecated:: 0.14.0

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

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

Examples
--------
>>> a = [['a', 1, 1], ['b', 2, 2], ['c', 3, 3]]
>>> df = ps.DataFrame(a, columns=['str', 'int1', 'int2'])
>>> df
  str  int1  int2
0   a     1     1
1   b     2     2
2   c     3     3

>>> df.get_dtype_counts().sort_values()
object    1
int64     2
dtype: int64

>>> df.str.get_dtype_counts().sort_values()
object    1
dtype: int64
def get_dtype_counts(self) -> pd.Series:
    "\n        Return counts of unique dtypes in this object.\n\n        .. deprecated:: 0.14.0\n\n        Returns\n        -------\n        dtype : pd.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], ['b', 2, 2], ['c', 3, 3]]\n        >>> df = ps.DataFrame(a, columns=['str', 'int1', 'int2'])\n        >>> df\n          str  int1  int2\n        0   a     1     1\n        1   b     2     2\n        2   c     3     3\n\n        >>> df.get_dtype_counts().sort_values()\n        object    1\n        int64     2\n        dtype: int64\n\n        >>> df.str.get_dtype_counts().sort_values()\n        object    1\n        dtype: int64\n        "
    warnings.warn('`get_dtype_counts` has been deprecated and will be removed in a future version. For DataFrames use `.dtypes.value_counts()', FutureWarning)
    if (not isinstance(self.dtypes, Iterable)):
        dtypes = [self.dtypes]
    else:
        dtypes = list(self.dtypes)
    return pd.Series(dict(Counter([d.name for d in dtypes])))