Skip to content

Commit 9465449

Browse files
authored
DOC: Index docstring to clarify dtype (#55788)
Index docstring
1 parent eedf0d5 commit 9465449

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pandas/core/indexes/base.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -325,12 +325,12 @@ class Index(IndexOpsMixin, PandasObject):
325325
Parameters
326326
----------
327327
data : array-like (1-dimensional)
328-
dtype : NumPy dtype (default: object)
329-
If dtype is None, we find the dtype that best fits the data.
330-
If an actual dtype is provided, we coerce to that dtype if it's safe.
331-
Otherwise, an error will be raised.
332-
copy : bool
333-
Make a copy of input ndarray.
328+
dtype : str, numpy.dtype, or ExtensionDtype, optional
329+
Data type for the output Index. If not specified, this will be
330+
inferred from `data`.
331+
See the :ref:`user guide <basics.dtypes>` for more usages.
332+
copy : bool, default False
333+
Copy input data.
334334
name : object
335335
Name to be stored in the index.
336336
tupleize_cols : bool (default: True)

0 commit comments

Comments
 (0)