From aab0eab938c78a9928a7cd77e4546664e69a4a50 Mon Sep 17 00:00:00 2001 From: Luke Manley Date: Wed, 1 Nov 2023 07:35:15 -0400 Subject: [PATCH] Index docstring --- pandas/core/indexes/base.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 0301830df483b..ebf4f2d515956 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -325,12 +325,12 @@ class Index(IndexOpsMixin, PandasObject): Parameters ---------- data : array-like (1-dimensional) - dtype : NumPy dtype (default: object) - If dtype is None, we find the dtype that best fits the data. - If an actual dtype is provided, we coerce to that dtype if it's safe. - Otherwise, an error will be raised. - copy : bool - 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 ` for more usages. + copy : bool, default False + Copy input data. name : object Name to be stored in the index. tupleize_cols : bool (default: True)