Skip to content

Commit 54c880c

Browse files
committed
Fix: interval_range ignores dtype of start
1 parent f4851e5 commit 54c880c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pandas/core/indexes/interval.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1423,6 +1423,9 @@ def interval_range(
14231423
isinstance(start, (float, np.float16))
14241424
or isinstance(end, (float, np.float16))
14251425
or isinstance(freq, (float, np.float16))
1426+
or isinstance(start, (float, np.float32))
1427+
or isinstance(end, (float, np.float32))
1428+
or isinstance(freq, (float, np.float32))
14261429
):
14271430
dtype = np.dtype("float64")
14281431
elif (

0 commit comments

Comments
 (0)