bolster.data_sources.wikipedia
Wikipedia Northern Ireland Data Integration.
Data Source: Wikipedia provides publicly edited information about Northern Ireland institutions and governance through structured tables at https://en.wikipedia.org/wiki/Northern_Ireland_Executive. This module accesses historical composition data for the Northern Ireland Executive, including formation dates, dissolution dates, and leadership appointments since devolution began in 1999.
Update Frequency: Wikipedia content is updated continuously by volunteer editors as political events occur. Executive composition changes are typically reflected within days of official announcements. The module specifically parses the “Historical composition of the Northern Ireland Executive” table which maintains a comprehensive record of all executives since devolution.
Example
Extract NI Executive historical data and analyze political stability:
>>> from bolster.data_sources import wikipedia
>>> executives = wikipedia.get_ni_executive_basic_table()
>>> 'Duration' in executives.columns
True
>>> len(executives) > 0
True
This module provides utilities for analyzing Northern Ireland’s political history and executive stability patterns since the establishment of devolved government.
Attributes
Functions
Get Northern Ireland Executive composition data from Wikipedia. |
Module Contents
- bolster.data_sources.wikipedia.get_ni_executive_basic_table()[source]
Get Northern Ireland Executive composition data from Wikipedia.
Extracts historical data from the “Historical composition of the Northern Ireland Executive” table at: https://en.wikipedia.org/wiki/Northern_Ireland_Executive#Composition_since_devolution
- Returns:
Established: datetime64[ns] - When the executive was formed
Dissolved: datetime64[ns] - When the executive ended
Duration: timedelta64[ns] - How long the executive lasted
Interregnum: timedelta64[ns] - Gap until next executive
- Return type:
DataFrame with Executive index and columns
Example
>>> df = get_ni_executive_basic_table() >>> sorted(df.columns.tolist()) ['Dissolved', 'Duration', 'Established', 'Interregnum'] >>> len(df) > 0 True