-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PERF: speed up CategoricalIndex.get_loc (#23235)
- Loading branch information
1 parent
d93990e
commit f79e174
Showing
10 changed files
with
299 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import numpy as np | ||
import pytest | ||
|
||
from pandas._libs import index as libindex | ||
|
||
|
||
@pytest.fixture(params=[ | ||
(libindex.Int64Engine, np.int64), | ||
(libindex.Int32Engine, np.int32), | ||
(libindex.Int16Engine, np.int16), | ||
(libindex.Int8Engine, np.int8), | ||
(libindex.UInt64Engine, np.uint64), | ||
(libindex.UInt32Engine, np.uint32), | ||
(libindex.UInt16Engine, np.uint16), | ||
(libindex.UInt8Engine, np.uint8), | ||
(libindex.Float64Engine, np.float64), | ||
(libindex.Float32Engine, np.float32), | ||
], ids=lambda x: x[0].__name__) | ||
def numeric_indexing_engine_type_and_dtype(request): | ||
return request.param |
Oops, something went wrong.