add spaces. Fix ref to SparseArray · pandas-dev/pandas@1feefc6 (original) (raw)
`` @@ -1941,32 +1941,32 @@ The following table lists all of pandas extension types. For methods requiring `
``
1941
1941
`arguments, strings can be specified as indicated. See the respective
`
1942
1942
`documentation sections for more on each type.
`
1943
1943
``
1944
``
`-
+------------------+---------------------------+--------------------+-------------------------------+-----------------------------------------+-------------------------------+
`
1945
``
`-
|Kind of Data | Data Type | Scalar | Array | String Aliases | Documentation |
`
1946
``
`-
+==================+===========================+====================+===============================+=========================================+===============================+
`
1947
``
|tz-aware datetime | :class:`DatetimeTZDtype` | :class:`Timestamp` | :class:`arrays.DatetimeArray` | ``'datetime64[ns, <tz>]'`` | :ref:`timeseries.timezone` |
1948
``
`-
+------------------+---------------------------+--------------------+-------------------------------+-----------------------------------------+-------------------------------+
`
1949
``
|Categorical | :class:`CategoricalDtype` | (none) | :class:`Categorical` | ``'category'`` | :ref:`categorical` |
1950
``
`-
+------------------+---------------------------+--------------------+-------------------------------+-----------------------------------------+-------------------------------+
`
1951
``
|period | :class:`PeriodDtype` | :class:`Period` | :class:`arrays.PeriodArray` | ``'period[<freq>]'``, | :ref:`timeseries.periods` |
1952
``
|(time spans) | | | | ``'Period[<freq>]'`` | |
1953
``
`-
+------------------+---------------------------+--------------------+-------------------------------+-----------------------------------------+-------------------------------+
`
1954
``
|sparse | :class:`SparseDtype` | (none) | :class:`arrays.SparseArray` | ``'Sparse'``, ``'Sparse[int]'``, | :ref:`sparse` |
1955
``
| | | | | ``'Sparse[float]'`` | |
1956
``
`-
+------------------+---------------------------+--------------------+-------------------------------+-----------------------------------------+-------------------------------+
`
1957
``
| intervals | :class:`IntervalDtype` | :class:`Interval` | :class:`arrays.IntervalArray` | ``'interval'``, ``'Interval'``, | :ref:`advanced.intervalindex` |
1958
``
| | | | | ``'Interval[<numpy_dtype>]'``, | |
1959
``
| | | | | ``'Interval[datetime64[ns, <tz>]]'``, | |
1960
``
| | | | | ``'Interval[timedelta64[<freq>]]'`` | |
1961
``
`-
+------------------+---------------------------+--------------------+-------------------------------+-----------------------------------------+-------------------------------+
`
1962
``
| nullable integer + :class:`Int64Dtype`, ... | (none) | :class:`arrays.IntegerArray` | ``'Int8'``, ``'Int16'``, ``'Int32'``, | :ref:`integer_na` |
1963
``
| | | | | ``'Int64'``, ``'UInt8'``, ``'UInt16'``, | |
1964
``
| | | | | ``'UInt32'``, ``'UInt64'`` | |
1965
``
`-
+------------------+---------------------------+--------------------+-------------------------------+-----------------------------------------+-------------------------------+
`
1966
``
| Strings | :class:`StringDtype` | :class:`str` | :class:`arrays.StringArray` | ``'string'`` | :ref:`text` |
1967
``
`-
+------------------+---------------------------+--------------------+-------------------------------+-----------------------------------------+-------------------------------+
`
1968
``
| Boolean (with NA)| :class:`BooleanDtype` | :class:`bool` | :class:`arrays.BooleanArray` | ``'boolean'`` | :ref:`api.arrays.bool` |
1969
``
`-
+------------------+---------------------------+--------------------+-------------------------------+-----------------------------------------+-------------------------------+
`
``
1944
`+
+-------------------+---------------------------+--------------------+-------------------------------+-----------------------------------------+-------------------------------+
`
``
1945
`+
| Kind of Data | Data Type | Scalar | Array | String Aliases | Documentation |
`
``
1946
`+
+===================+===========================+====================+===============================+=========================================+===============================+
`
``
1947
| tz-aware datetime | :class:`DatetimeTZDtype` | :class:`Timestamp` | :class:`arrays.DatetimeArray` | ``'datetime64[ns, <tz>]'`` | :ref:`timeseries.timezone` |
``
1948
`+
+-------------------+---------------------------+--------------------+-------------------------------+-----------------------------------------+-------------------------------+
`
``
1949
| Categorical | :class:`CategoricalDtype` | (none) | :class:`Categorical` | ``'category'`` | :ref:`categorical` |
``
1950
`+
+-------------------+---------------------------+--------------------+-------------------------------+-----------------------------------------+-------------------------------+
`
``
1951
| period | :class:`PeriodDtype` | :class:`Period` | :class:`arrays.PeriodArray` | ``'period[<freq>]'``, | :ref:`timeseries.periods` |
``
1952
| (time spans) | | | | ``'Period[<freq>]'`` | |
``
1953
`+
+-------------------+---------------------------+--------------------+-------------------------------+-----------------------------------------+-------------------------------+
`
``
1954
| sparse | :class:`SparseDtype` | (none) | :class:`SparseArray` | ``'Sparse'``, ``'Sparse[int]'``, | :ref:`sparse` |
``
1955
| | | | | ``'Sparse[float]'`` | |
``
1956
`+
+-------------------+---------------------------+--------------------+-------------------------------+-----------------------------------------+-------------------------------+
`
``
1957
| intervals | :class:`IntervalDtype` | :class:`Interval` | :class:`arrays.IntervalArray` | ``'interval'``, ``'Interval'``, | :ref:`advanced.intervalindex` |
``
1958
| | | | | ``'Interval[<numpy_dtype>]'``, | |
``
1959
| | | | | ``'Interval[datetime64[ns, <tz>]]'``, | |
``
1960
| | | | | ``'Interval[timedelta64[<freq>]]'`` | |
``
1961
`+
+-------------------+---------------------------+--------------------+-------------------------------+-----------------------------------------+-------------------------------+
`
``
1962
| nullable integer + :class:`Int64Dtype`, ... | (none) | :class:`arrays.IntegerArray` | ``'Int8'``, ``'Int16'``, ``'Int32'``, | :ref:`integer_na` |
``
1963
| | | | | ``'Int64'``, ``'UInt8'``, ``'UInt16'``, | |
``
1964
| | | | | ``'UInt32'``, ``'UInt64'`` | |
``
1965
`+
+-------------------+---------------------------+--------------------+-------------------------------+-----------------------------------------+-------------------------------+
`
``
1966
| Strings | :class:`StringDtype` | :class:`str` | :class:`arrays.StringArray` | ``'string'`` | :ref:`text` |
``
1967
`+
+-------------------+---------------------------+--------------------+-------------------------------+-----------------------------------------+-------------------------------+
`
``
1968
| Boolean (with NA) | :class:`BooleanDtype` | :class:`bool` | :class:`arrays.BooleanArray` | ``'boolean'`` | :ref:`api.arrays.bool` |
``
1969
`+
+-----------------0-+---------------------------+--------------------+-------------------------------+-----------------------------------------+-------------------------------+
`
1970
1970
``
1971
1971
`Pandas has two ways to store strings.
`
1972
1972
``