DateFilter
After
Bases: Date
Represents a threshold where a date must be strictly after the specified value.
Source code in phenex/filters/date_filter.py
AfterOrOn
Bases: Date
Represents a threshold where a date must be on or after the specified value.
Source code in phenex/filters/date_filter.py
Before
Bases: Date
Represents a threshold where a date must be strictly before the specified value.
Source code in phenex/filters/date_filter.py
BeforeOrOn
Bases: Date
Represents a threshold where a date must be on or before the specified value.
Source code in phenex/filters/date_filter.py
Date
Bases: Value
The Date class is a specialized Value class for handling date comparisons.
Attributes:
Name | Type | Description |
---|---|---|
operator |
str
|
The comparison operator, one of '>', '>=', '<', '<=', '='. |
value |
Union[date, str]
|
The date value, which can be a |
date_format |
str
|
The format to use for parsing date strings (default is 'YYYY-MM-DD'). |
Source code in phenex/filters/date_filter.py
DateFilter(min_date=None, max_date=None, column_name='EVENT_DATE')
DateFilter is a specialized ValueFilter for handling date-based filtering.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
min_date
|
Optional[Union[Date, After, AfterOrOn]]
|
The minimum date condition. Recommended to pass either After or AfterOrOn. |
None
|
max_date
|
Optional[Union[Date, Before, BeforeOrOn]]
|
The maximum date condition. Recommended to pass either Before or BeforeOrOn. |
None
|
column_name
|
str
|
The name of the column to apply the filter on. Defaults to "EVENT_DATE". |
'EVENT_DATE'
|