We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eedf0d5 commit 9465449Copy full SHA for 9465449
pandas/core/indexes/base.py
@@ -325,12 +325,12 @@ class Index(IndexOpsMixin, PandasObject):
325
Parameters
326
----------
327
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.
+ dtype : str, numpy.dtype, or ExtensionDtype, optional
+ Data type for the output Index. If not specified, this will be
+ inferred from `data`.
+ See the :ref:`user guide <basics.dtypes>` for more usages.
+ copy : bool, default False
+ Copy input data.
334
name : object
335
Name to be stored in the index.
336
tupleize_cols : bool (default: True)
0 commit comments