CupidDB
RowFilter
class
pycupiddb.RowFilter(column, logic, value, data_type
)
The following is a list of available comparison logic:
gte : Greater than or equal to
gt : Greater than
lte : Less than or equal to
lt : Less than
eq : Equal
ne : Not equal
Parameters:
- column : string
Specifies the column name on which to apply the filter logic.
- logic : string
The comparison logic to apply to the column. The possible inputs for the logic argument are `gte`, `gt`, `lte`, `lt`, `eq`, and `ne`.
- value : Any
The value used for comparing against the data in the column.
- data_type : string
Specifies the data type for filtering. The possible inputs for the data type argument are `int`, `float`, `date`, `datetime`, `string`, and `bool`.
Example:
from datetime import date from pycupiddb import RowFilter filters = [ RowFilter(column='date', logic='gte', value=date(2000, 1, 1), data_type='date'), ]