Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
add spaces. Fix ref to SparseArray
  • Loading branch information
Dr-Irv committed Jan 3, 2020
commit 1feefc69241a8944bbdf3e7cd042336ef9554be7
52 changes: 26 additions & 26 deletions doc/source/getting_started/basics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1941,32 +1941,32 @@ The following table lists all of pandas extension types. For methods requiring `
arguments, strings can be specified as indicated. See the respective
documentation sections for more on each type.

+------------------+---------------------------+--------------------+-------------------------------+-----------------------------------------+-------------------------------+
|Kind of Data | Data Type | Scalar | Array | String Aliases | Documentation |
+==================+===========================+====================+===============================+=========================================+===============================+
|tz-aware datetime | :class:`DatetimeTZDtype` | :class:`Timestamp` | :class:`arrays.DatetimeArray` | ``'datetime64[ns, <tz>]'`` | :ref:`timeseries.timezone` |
+------------------+---------------------------+--------------------+-------------------------------+-----------------------------------------+-------------------------------+
|Categorical | :class:`CategoricalDtype` | (none) | :class:`Categorical` | ``'category'`` | :ref:`categorical` |
+------------------+---------------------------+--------------------+-------------------------------+-----------------------------------------+-------------------------------+
|period | :class:`PeriodDtype` | :class:`Period` | :class:`arrays.PeriodArray` | ``'period[<freq>]'``, | :ref:`timeseries.periods` |
|(time spans) | | | | ``'Period[<freq>]'`` | |
+------------------+---------------------------+--------------------+-------------------------------+-----------------------------------------+-------------------------------+
|sparse | :class:`SparseDtype` | (none) | :class:`arrays.SparseArray` | ``'Sparse'``, ``'Sparse[int]'``, | :ref:`sparse` |
| | | | | ``'Sparse[float]'`` | |
+------------------+---------------------------+--------------------+-------------------------------+-----------------------------------------+-------------------------------+
| intervals | :class:`IntervalDtype` | :class:`Interval` | :class:`arrays.IntervalArray` | ``'interval'``, ``'Interval'``, | :ref:`advanced.intervalindex` |
| | | | | ``'Interval[<numpy_dtype>]'``, | |
| | | | | ``'Interval[datetime64[ns, <tz>]]'``, | |
| | | | | ``'Interval[timedelta64[<freq>]]'`` | |
+------------------+---------------------------+--------------------+-------------------------------+-----------------------------------------+-------------------------------+
| nullable integer + :class:`Int64Dtype`, ... | (none) | :class:`arrays.IntegerArray` | ``'Int8'``, ``'Int16'``, ``'Int32'``, | :ref:`integer_na` |
| | | | | ``'Int64'``, ``'UInt8'``, ``'UInt16'``, | |
| | | | | ``'UInt32'``, ``'UInt64'`` | |
+------------------+---------------------------+--------------------+-------------------------------+-----------------------------------------+-------------------------------+
| Strings | :class:`StringDtype` | :class:`str` | :class:`arrays.StringArray` | ``'string'`` | :ref:`text` |
+------------------+---------------------------+--------------------+-------------------------------+-----------------------------------------+-------------------------------+
| Boolean (with NA)| :class:`BooleanDtype` | :class:`bool` | :class:`arrays.BooleanArray` | ``'boolean'`` | :ref:`api.arrays.bool` |
+------------------+---------------------------+--------------------+-------------------------------+-----------------------------------------+-------------------------------+
+-------------------+---------------------------+--------------------+-------------------------------+-----------------------------------------+-------------------------------+
| Kind of Data | Data Type | Scalar | Array | String Aliases | Documentation |
+===================+===========================+====================+===============================+=========================================+===============================+
| tz-aware datetime | :class:`DatetimeTZDtype` | :class:`Timestamp` | :class:`arrays.DatetimeArray` | ``'datetime64[ns, <tz>]'`` | :ref:`timeseries.timezone` |
+-------------------+---------------------------+--------------------+-------------------------------+-----------------------------------------+-------------------------------+
| Categorical | :class:`CategoricalDtype` | (none) | :class:`Categorical` | ``'category'`` | :ref:`categorical` |
+-------------------+---------------------------+--------------------+-------------------------------+-----------------------------------------+-------------------------------+
| period | :class:`PeriodDtype` | :class:`Period` | :class:`arrays.PeriodArray` | ``'period[<freq>]'``, | :ref:`timeseries.periods` |
| (time spans) | | | | ``'Period[<freq>]'`` | |
+-------------------+---------------------------+--------------------+-------------------------------+-----------------------------------------+-------------------------------+
| sparse | :class:`SparseDtype` | (none) | :class:`SparseArray` | ``'Sparse'``, ``'Sparse[int]'``, | :ref:`sparse` |
| | | | | ``'Sparse[float]'`` | |
+-------------------+---------------------------+--------------------+-------------------------------+-----------------------------------------+-------------------------------+
| intervals | :class:`IntervalDtype` | :class:`Interval` | :class:`arrays.IntervalArray` | ``'interval'``, ``'Interval'``, | :ref:`advanced.intervalindex` |
| | | | | ``'Interval[<numpy_dtype>]'``, | |
| | | | | ``'Interval[datetime64[ns, <tz>]]'``, | |
| | | | | ``'Interval[timedelta64[<freq>]]'`` | |
+-------------------+---------------------------+--------------------+-------------------------------+-----------------------------------------+-------------------------------+
| nullable integer + :class:`Int64Dtype`, ... | (none) | :class:`arrays.IntegerArray` | ``'Int8'``, ``'Int16'``, ``'Int32'``, | :ref:`integer_na` |
| | | | | ``'Int64'``, ``'UInt8'``, ``'UInt16'``, | |
| | | | | ``'UInt32'``, ``'UInt64'`` | |
+-------------------+---------------------------+--------------------+-------------------------------+-----------------------------------------+-------------------------------+
| Strings | :class:`StringDtype` | :class:`str` | :class:`arrays.StringArray` | ``'string'`` | :ref:`text` |
+-------------------+---------------------------+--------------------+-------------------------------+-----------------------------------------+-------------------------------+
| Boolean (with NA) | :class:`BooleanDtype` | :class:`bool` | :class:`arrays.BooleanArray` | ``'boolean'`` | :ref:`api.arrays.bool` |
+-----------------0-+---------------------------+--------------------+-------------------------------+-----------------------------------------+-------------------------------+

Pandas has two ways to store strings.

Expand Down