diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index bab3d2d1b5431..4573fd7fc6da3 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -395,7 +395,7 @@ def __new__( if subarr.ndim > 1: # GH#13601, GH#20285, GH#27125 raise ValueError("Index data must be 1-dimensional") - return cls._simple_new(subarr, name, **kwargs) + return cls._simple_new(subarr, name) elif hasattr(data, "__array__"): return Index(np.asarray(data), dtype=dtype, copy=copy, name=name, **kwargs) diff --git a/pandas/core/series.py b/pandas/core/series.py index e79404ccd9521..deab7cf91898a 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -4550,7 +4550,7 @@ def to_period(self, freq=None, copy=True) -> "Series": return self._constructor(new_values, index=new_index).__finalize__(self) # ---------------------------------------------------------------------- - # Add index and columns + # Add index index: "Index" = properties.AxisProperty( axis=0, doc="The index (axis labels) of the Series." ) diff --git a/pandas/io/json/_normalize.py b/pandas/io/json/_normalize.py index cf292a13fed7f..b638bdc0bc1eb 100644 --- a/pandas/io/json/_normalize.py +++ b/pandas/io/json/_normalize.py @@ -116,7 +116,7 @@ def _json_normalize( meta: Optional[Union[str, List[Union[str, List[str]]]]] = None, meta_prefix: Optional[str] = None, record_prefix: Optional[str] = None, - errors: Optional[str] = "raise", + errors: str = "raise", sep: str = ".", max_level: Optional[int] = None, ) -> "DataFrame":