Skip to content

Commit 5c37a0b

Browse files
authored
CLN: some minor cleanups (pandas-dev#31337)
1 parent 0c50950 commit 5c37a0b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pandas/core/indexes/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ def __new__(
395395
if subarr.ndim > 1:
396396
# GH#13601, GH#20285, GH#27125
397397
raise ValueError("Index data must be 1-dimensional")
398-
return cls._simple_new(subarr, name, **kwargs)
398+
return cls._simple_new(subarr, name)
399399

400400
elif hasattr(data, "__array__"):
401401
return Index(np.asarray(data), dtype=dtype, copy=copy, name=name, **kwargs)

pandas/core/series.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4561,7 +4561,7 @@ def to_period(self, freq=None, copy=True) -> "Series":
45614561
return self._constructor(new_values, index=new_index).__finalize__(self)
45624562

45634563
# ----------------------------------------------------------------------
4564-
# Add index and columns
4564+
# Add index
45654565
index: "Index" = properties.AxisProperty(
45664566
axis=0, doc="The index (axis labels) of the Series."
45674567
)

pandas/io/json/_normalize.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def _json_normalize(
116116
meta: Optional[Union[str, List[Union[str, List[str]]]]] = None,
117117
meta_prefix: Optional[str] = None,
118118
record_prefix: Optional[str] = None,
119-
errors: Optional[str] = "raise",
119+
errors: str = "raise",
120120
sep: str = ".",
121121
max_level: Optional[int] = None,
122122
) -> "DataFrame":

0 commit comments

Comments
 (0)