Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork18.5k
Commitc75171a
* BUG:Fix#57608: queries on categorical string columns inHDFStore.select() return unexpected results.In function __init__() of class Selection (pandas/core/io/pytables.py),the method self.terms.evaluate() was not returning the correct valuefor the where condition. The issue stemmed from the functionconvert_value() of class BinOp (pandas/core/computation/pytables.py),where the function searchedsorted() did not return the correct indexwhen matching the where condition in the metadata (categories table).Replacing searchsorted() with np.where() resolves this issue.* BUG: Follow-up for#57608: check if metadata is sorted before search* BUG: Follow-up for#57608: use direct match via np.flatnonzero* [pre-commit.ci] auto fixes from pre-commit.com hooksfor more information, seehttps://pre-commit.ci---------Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent09a17c7 commitc75171a
File tree
3 files changed
+26
-1
lines changed- doc/source/whatsnew
- pandas
- core/computation
- tests/io/pytables
3 files changed
+26
-1
lines changedLines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
775 | 775 |
| |
776 | 776 |
| |
777 | 777 |
| |
| 778 | + | |
778 | 779 |
| |
779 | 780 |
| |
780 | 781 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
239 | 239 |
| |
240 | 240 |
| |
241 | 241 |
| |
242 |
| - | |
| 242 | + | |
| 243 | + | |
243 | 244 |
| |
244 | 245 |
| |
245 | 246 |
| |
|
Lines changed: 23 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
| 26 | + | |
| 27 | + | |
| 28 | + | |
26 | 29 |
| |
27 | 30 |
| |
28 | 31 |
| |
| |||
1107 | 1110 |
| |
1108 | 1111 |
| |
1109 | 1112 |
| |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + |
0 commit comments
Comments
(0)