compass.utilities.jurisdictions.jurisdiction_websites#

jurisdiction_websites(jurisdiction_info=None)[source]#

Build a mapping of jurisdiction identifiers to website URLs

Parameters:

jurisdiction_info (pandas.DataFrame, optional) – DataFrame containing jurisdiction names and websites. If None, this info is loaded using load_all_jurisdiction_info(). By default, None.

Returns:

dict – Mapping from jurisdiction FIPS codes to their primary website URLs.

Notes

The helper uses FIPS codes rather than string names to avoid collisions between same-named jurisdictions in different states.