Skip to content

Commit 8a75be1

Browse files
committed
fixed 1 error of unexpected-keyword-argument
other errors of the type were part of test or are expected Signed-off-by: Soumik Dutta <[email protected]>
1 parent b0237ed commit 8a75be1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/core/indexes/base.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1150,7 +1150,7 @@ def astype(self, dtype, copy: bool = True):
11501150
# When Int64Index etc. are removed from the code base, removed this also.
11511151
if isinstance(dtype, np.dtype) and is_numeric_dtype(dtype):
11521152
return self._constructor(
1153-
new_values, name=self.name, dtype=dtype, copy=False
1153+
new_values
11541154
)
11551155
return Index(new_values, name=self.name, dtype=new_values.dtype, copy=False)
11561156

@@ -5131,7 +5131,7 @@ def _wrap_joined_index(self: _IndexT, joined: ArrayLike, other: _IndexT) -> _Ind
51315131
name = self.names if self.names == other.names else None
51325132
# error: Incompatible return value type (got "MultiIndex",
51335133
# expected "_IndexT")
5134-
return self._constructor(joined, name=name) # type: ignore[return-value]
5134+
return self._constructor(joined) # type: ignore[return-value]
51355135
else:
51365136
name = get_op_result_name(self, other)
51375137
return self._constructor._with_infer(joined, name=name)
@@ -6482,7 +6482,7 @@ def map(self, mapper, na_action=None):
64826482
new_values.dtype
64836483
):
64846484
return self._constructor(
6485-
new_values, dtype=dtype, copy=False, name=self.name
6485+
new_values
64866486
)
64876487

64886488
return Index._with_infer(new_values, dtype=dtype, copy=False, name=self.name)

0 commit comments

Comments
 (0)