Skip to content

Commit c1633fb

Browse files
committed
fix not-allowed parameter
1 parent 2bb282f commit c1633fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/indexes/numeric.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def _ensure_array(cls, data, dtype, copy: bool):
163163
if issubclass(data.dtype.type, str):
164164
cls._string_data_error(data)
165165

166-
dtype = cls._ensure_dtype(dtype, validate=False)
166+
dtype = cls._ensure_dtype(dtype)
167167

168168
if copy or not is_dtype_equal(data.dtype, dtype):
169169
subarr = np.array(data, dtype=dtype, copy=copy)

0 commit comments

Comments
 (0)