@@ -2051,32 +2051,33 @@ The following table lists all of pandas extension types. For methods requiring `
2051
2051
arguments, strings can be specified as indicated. See the respective
2052
2052
documentation sections for more on each type.
2053
2053
2054
- +-------------------+---------------------------+--------------------+-------------------------------+-----------------------------------------+-------------------------------+
2055
- | Kind of Data | Data Type | Scalar | Array | String Aliases | Documentation |
2056
- +===================+===========================+====================+===============================+=========================================+===============================+
2057
- | tz-aware datetime | :class: `DatetimeTZDtype ` | :class: `Timestamp ` | :class: `arrays.DatetimeArray ` | ``'datetime64[ns, <tz>]' `` | :ref: `timeseries.timezone ` |
2058
- +-------------------+---------------------------+--------------------+-------------------------------+-----------------------------------------+-------------------------------+
2059
- | Categorical | :class: `CategoricalDtype ` | (none) | :class: `Categorical ` | ``'category' `` | :ref: `categorical ` |
2060
- +-------------------+---------------------------+--------------------+-------------------------------+-----------------------------------------+-------------------------------+
2061
- | period | :class: `PeriodDtype ` | :class: `Period ` | :class: `arrays.PeriodArray ` | ``'period[<freq>]' ``, | :ref: `timeseries.periods ` |
2062
- | (time spans) | | | | ``'Period[<freq>]' `` | |
2063
- +-------------------+---------------------------+--------------------+-------------------------------+-----------------------------------------+-------------------------------+
2064
- | sparse | :class: `SparseDtype ` | (none) | :class: `arrays.SparseArray ` | ``'Sparse' ``, ``'Sparse[int]' ``, | :ref: `sparse ` |
2065
- | | | | | ``'Sparse[float]' `` | |
2066
- +-------------------+---------------------------+--------------------+-------------------------------+-----------------------------------------+-------------------------------+
2067
- | intervals | :class: `IntervalDtype ` | :class: `Interval ` | :class: `arrays.IntervalArray ` | ``'interval' ``, ``'Interval' ``, | :ref: `advanced.intervalindex ` |
2068
- | | | | | ``'Interval[<numpy_dtype>]' ``, | |
2069
- | | | | | ``'Interval[datetime64[ns, <tz>]]' ``, | |
2070
- | | | | | ``'Interval[timedelta64[<freq>]]' `` | |
2071
- +-------------------+---------------------------+--------------------+-------------------------------+-----------------------------------------+-------------------------------+
2072
- | nullable integer + :class: `Int64Dtype `, ... | (none) | :class: `arrays.IntegerArray ` | ``'Int8' ``, ``'Int16' ``, ``'Int32' ``, | :ref: `integer_na ` |
2073
- | | | | | ``'Int64' ``, ``'UInt8' ``, ``'UInt16' ``, | |
2074
- | | | | | ``'UInt32' ``, ``'UInt64' `` | |
2075
- +-------------------+---------------------------+--------------------+-------------------------------+-----------------------------------------+-------------------------------+
2076
- | Strings | :class: `StringDtype ` | :class: `str ` | :class: `arrays.StringArray ` | ``'string' `` | :ref: `text ` |
2077
- +-------------------+---------------------------+--------------------+-------------------------------+-----------------------------------------+-------------------------------+
2078
- | Boolean (with NA) | :class: `BooleanDtype ` | :class: `bool ` | :class: `arrays.BooleanArray ` | ``'boolean' `` | :ref: `api.arrays.bool ` |
2079
- +-------------------+---------------------------+--------------------+-------------------------------+-----------------------------------------+-------------------------------+
2054
+ +-------------------------------------------------+---------------------------+--------------------+-------------------------------+----------------------------------------+
2055
+ | Kind of Data | Data Type | Scalar | Array | String Aliases |
2056
+ +=================================================+===============+===========+========+===========+===============================+========================================+
2057
+ | :ref: `tz-aware datetime <timeseries.timezone >` | :class: `DatetimeTZDtype ` | :class: `Timestamp ` | :class: `arrays.DatetimeArray ` | ``'datetime64[ns, <tz>]' `` |
2058
+ | | | | | |
2059
+ +-------------------------------------------------+---------------+-----------+--------------------+-------------------------------+----------------------------------------+
2060
+ | :ref: `Categorical <categorical >` | :class: `CategoricalDtype ` | (none) | :class: `Categorical ` | ``'category' `` |
2061
+ +-------------------------------------------------+---------------------------+--------------------+-------------------------------+----------------------------------------+
2062
+ | :ref: `period (time spans) <timeseries.periods >` | :class: `PeriodDtype ` | :class: `Period ` | :class: `arrays.PeriodArray ` | ``'period[<freq>]' ``, |
2063
+ | | | | ``'Period[<freq>]' `` | |
2064
+ +-------------------------------------------------+---------------------------+--------------------+-------------------------------+----------------------------------------+
2065
+ | :ref: `sparse <sparse >` | :class: `SparseDtype ` | (none) | :class: `arrays.SparseArray ` | ``'Sparse' ``, ``'Sparse[int]' ``, |
2066
+ | | | | | ``'Sparse[float]' `` |
2067
+ +-------------------------------------------------+---------------------------+--------------------+-------------------------------+----------------------------------------+
2068
+ | :ref: `intervals <advanced.intervalindex >` | :class: `IntervalDtype ` | :class: `Interval ` | :class: `arrays.IntervalArray ` | ``'interval' ``, ``'Interval' ``, |
2069
+ | | | | | ``'Interval[<numpy_dtype>]' ``, |
2070
+ | | | | | ``'Interval[datetime64[ns, <tz>]]' ``, |
2071
+ | | | | | ``'Interval[timedelta64[<freq>]]' `` |
2072
+ +-------------------------------------------------+---------------------------+--------------------+-------------------------------+----------------------------------------+
2073
+ | :ref: `nullable integer <integer_na >` | :class: `Int64Dtype `, ... | (none) | :class: `arrays.IntegerArray ` | ``'Int8' ``, ``'Int16' ``, ``'Int32' ``, |
2074
+ | | | | | ``'Int64'``, ``'UInt8'``, ``'UInt16'``,|
2075
+ | | | | | ``'UInt32' ``, ``'UInt64' `` |
2076
+ +-------------------------------------------------+---------------------------+--------------------+-------------------------------+----------------------------------------+
2077
+ | :ref: `Strings <text >` | :class: `StringDtype ` | :class: `str ` | :class: `arrays.StringArray ` | ``'string' `` |
2078
+ +-------------------------------------------------+---------------------------+--------------------+-------------------------------+----------------------------------------+
2079
+ | :ref: `Boolean (with NA) <api.arrays.bool >` | :class: `BooleanDtype ` | :class: `bool ` | :class: `arrays.BooleanArray ` | ``'boolean' `` |
2080
+ +-------------------------------------------------+---------------------------+--------------------+-------------------------------+----------------------------------------+
2080
2081
2081
2082
pandas has two ways to store strings.
2082
2083
0 commit comments