Skip to content

Commit 5c7c65c

Browse files
Does not rely on explicit arguments
1 parent a59a945 commit 5c7c65c

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
@@ -57,7 +57,7 @@ def __new__(cls, data=None, dtype=None, copy=False, name=None, fastpath=None):
5757
return cls._simple_new(data, name=name)
5858

5959
# is_scalar, generators handled in coerce_to_ndarray
60-
data = cls._coerce_to_ndarray(data, dtype=dtype)
60+
data = cls._coerce_to_ndarray(data, dtype=cls._default_dtype)
6161

6262
if issubclass(data.dtype.type, str):
6363
cls._string_data_error(data)

0 commit comments

Comments
 (0)