pir_pipeline.utils.dashboard_utils.get_year_range¶
- pir_pipeline.utils.dashboard_utils.get_year_range(table: TableClause, _id: tuple[str], db: SQLAlchemyUtils) str ¶
Return the range of years covered by the target question
- Args:
table (TableClause): Table to search in for the year range _id (tuple[str]): tuple[column_name, value]. Identifies which question to find the year range for. db (SQLAlchemyUtils): SQLAlchemyUtils object
- Returns:
str: Year range as a string