def get_ftype_counts(self):
    "\n        Return counts of unique ftypes in this object.\n\n        .. deprecated:: 0.23.0\n\n        This is useful for SparseDataFrame or for DataFrames containing\n        sparse arrays.\n\n        Returns\n        -------\n        dtype : Series\n            Series with the count of columns with each type and\n            sparsity (dense/sparse).\n\n        See Also\n        --------\n        ftypes : Return ftypes (indication of sparse/dense and dtype) in\n            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_ftype_counts()  # doctest: +SKIP\n        float64:dense    1\n        int64:dense      1\n        object:dense     1\n        dtype: int64\n        "
    warnings.warn('get_ftype_counts is deprecated and will be removed in a future version', FutureWarning, stacklevel=2)
    from pandas import Series
    return Series(self._data.get_ftype_counts())
Return counts of unique ftypes in this object.

.. deprecated:: 0.23.0

This is useful for SparseDataFrame or for DataFrames containing
sparse arrays.

Returns
-------
dtype : Series
    Series with the count of columns with each type and
    sparsity (dense/sparse).

See Also
--------
ftypes : Return ftypes (indication of sparse/dense and dtype) 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_ftype_counts()  # doctest: +SKIP
float64:dense    1
int64:dense      1
object:dense     1
dtype: int64
def get_ftype_counts(self):
    "\n        Return counts of unique ftypes in this object.\n\n        .. deprecated:: 0.23.0\n\n        This is useful for SparseDataFrame or for DataFrames containing\n        sparse arrays.\n\n        Returns\n        -------\n        dtype : Series\n            Series with the count of columns with each type and\n            sparsity (dense/sparse).\n\n        See Also\n        --------\n        ftypes : Return ftypes (indication of sparse/dense and dtype) in\n            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_ftype_counts()  # doctest: +SKIP\n        float64:dense    1\n        int64:dense      1\n        object:dense     1\n        dtype: int64\n        "
    warnings.warn('get_ftype_counts is deprecated and will be removed in a future version', FutureWarning, stacklevel=2)
    from pandas import Series
    return Series(self._data.get_ftype_counts())