Bases: object
Implements a sorted array container using a list of numpy arrays.
Table
Sorted columns of the original table
Column
object
Row numbers corresponding to data columns
Whether the values of the index must be unique. Defaults to False.
Attributes Summary
Methods Summary
Attributes Documentation
Methods Documentation
Add a new entry to the sorted array.
tuple
Column values at the given row
int
Row number
Find all rows matching the given key.
tuple
Column values
list
List of rows matching the input key
Return the index of the largest key in data greater than or equal to the given key, data pair.
tuple
Column key
int
Row number
If True, return the index of the given key in data or -1 if the key is not present.
Retrieve all array items as a list of pairs of the form [(key, [row 1, row 2, …]), …].
Find values in the given range.
tuple
Lower search bound
tuple
Upper search bound
tuple
of bool
Indicates whether the search should be inclusive or exclusive with respect to the endpoints. The first argument corresponds to an inclusive lower bound, and the second argument to an inclusive upper bound.
Remove the given entry from the sorted array.
tuple
Column values
int
Row number
Whether the entry was successfully removed
Replace all rows with the values they map to in the given dictionary. Any rows not present as keys in the dictionary will have their entries deleted.
dict
Mapping of row numbers to new row numbers
Decrement all row numbers greater than the input row.
int
Input row number
Increment all row numbers greater than or equal to the input row.
int
Input row number
Make row order align with key order.
Return rows in sorted order.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4