@@ -1924,11 +1924,24 @@ untouched. If the data is modified, it is because you did so explicitly.
1924
1924
dtypes
1925
1925
------
1926
1926
1927
- The main types stored in pandas objects are ``float ``, ``int ``, ``bool ``,
1928
- ``datetime64[ns] `` and ``datetime64[ns, tz] ``, ``timedelta[ns] ``,
1929
- ``category `` and ``object ``. In addition these dtypes have item sizes, e.g.
1930
- ``int64 `` and ``int32 ``. See :ref: `Series with TZ <timeseries.timezone_series >`
1931
- for more detail on ``datetime64[ns, tz] `` dtypes.
1927
+ For the most part, pandas uses NumPy arrays and dtypes for Series or individual
1928
+ columns of a DataFrame. The main types allowed in pandas objects are ``float ``,
1929
+ ``int ``, ``bool ``, and ``datetime64[ns] `` (note that NumPy does not support
1930
+ timezone-aware datetimes).
1931
+
1932
+ In addition to NumPy's types, pandas :ref: `extends <extending.extension-types >`
1933
+ NumPy's type-system for a few cases.
1934
+
1935
+ * :ref: `Categorical <categorical >`
1936
+ * :ref: `Datetime with Timezone <timeseries.timezone_series >`
1937
+ * :ref: `Period <timeseries.periods >`
1938
+ * :ref: `Interval <advanced.indexing.intervallindex >`
1939
+
1940
+ Pandas uses the ``object `` dtype for storing strings.
1941
+
1942
+ Finally, arbitrary objects may be stored using the ``object `` dtype, but should
1943
+ be avoided to the extent possible (for performance and interoperability with
1944
+ other libraries and methods. See :ref: `basics.object_conversion `).
1932
1945
1933
1946
A convenient :attr: `~DataFrame.dtypes ` attribute for DataFrame returns a Series
1934
1947
with the data type of each column.
0 commit comments