Skip to content

Commit a2cf970

Browse files
committed
remove extraneous Sparse types. use 'alias' rather than 'shortcut'
1 parent bda57dc commit a2cf970

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

doc/source/getting_started/basics.rst

+3-6
Original file line numberDiff line numberDiff line change
@@ -1942,7 +1942,7 @@ arguments, strings can be specified as indicated. See the respective
19421942
documentation sections for more on each type.
19431943

19441944
+------------------+---------------------------+--------------------+-------------------------------+-----------------------------------------+-------------------------------+
1945-
|Kind of Data | Data Type | Scalar | Array | String Shortcuts | Documentation |
1945+
|Kind of Data | Data Type | Scalar | Array | String Aliases | Documentation |
19461946
+==================+===========================+====================+===============================+=========================================+===============================+
19471947
|tz-aware datetime | :class:`DatetimeTZDtype` | :class:`Timestamp` | :class:`arrays.DatetimeArray` | ``'datetime64[ns, <tz>]'`` | :ref:`timeseries.timezone` |
19481948
+------------------+---------------------------+--------------------+-------------------------------+-----------------------------------------+-------------------------------+
@@ -1952,13 +1952,10 @@ documentation sections for more on each type.
19521952
|(time spans) | | | | ``'Period[<freq>]'`` | |
19531953
+------------------+---------------------------+--------------------+-------------------------------+-----------------------------------------+-------------------------------+
19541954
|sparse | :class:`SparseDtype` | (none) | :class:`arrays.SparseArray` | ``'Sparse'``, ``'Sparse[int]'``, | :ref:`sparse` |
1955-
| | | | | ``'Sparse[int32, 0]'``, | |
1956-
| | | | | ``'Sparse[int64, 0]'``, | |
1957-
| | | | | ``'Sparse[float32, nan]'``, | |
1958-
| | | | | ``'Sparse[float64, nan]'`` | |
1955+
| | | | | ``'Sparse[float]'`` | |
19591956
+------------------+---------------------------+--------------------+-------------------------------+-----------------------------------------+-------------------------------+
19601957
| intervals | :class:`IntervalDtype` | :class:`Interval` | :class:`arrays.IntervalArray` | ``'interval'``, ``'Interval'``, | :ref:`advanced.intervalindex` |
1961-
| | | | | ``'Interval[<np.numeric>]'``, | |
1958+
| | | | | ``'Interval[<numpy_dtype>]'``, | |
19621959
| | | | | ``'Interval[datetime64[ns, <tz>]]'``, | |
19631960
| | | | | ``'Interval[timedelta64[<freq>]]'`` | |
19641961
+------------------+---------------------------+--------------------+-------------------------------+-----------------------------------------+-------------------------------+

doc/source/reference/arrays.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ For most data types, pandas uses NumPy arrays as the concrete
1212
objects contained with a :class:`Index`, :class:`Series`, or
1313
:class:`DataFrame`.
1414

15-
For some data types, pandas extends NumPy's type system. String shortcuts for these types
15+
For some data types, pandas extends NumPy's type system. String aliases for these types
1616
can be found at :ref:`basics.dtypes`.
1717

1818
=================== ========================= ================== =============================

0 commit comments

Comments
 (0)