Skip to content

Commit 8f5b32d

Browse files
committed
Made modifications efficient
1 parent 54c880c commit 8f5b32d

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

pandas/core/indexes/interval.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1420,12 +1420,9 @@ def interval_range(
14201420
dtype: np.dtype = np.dtype("int64")
14211421
if com.all_not_none(start, end, freq):
14221422
if (
1423-
isinstance(start, (float, np.float16))
1424-
or isinstance(end, (float, np.float16))
1425-
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))
1423+
isinstance(start, (float, np.floating))
1424+
or isinstance(end, (float, np.floating))
1425+
or isinstance(freq, (float, np.floating))
14291426
):
14301427
dtype = np.dtype("float64")
14311428
elif (

0 commit comments

Comments
 (0)