Source code for wikirepo.data.misc.sub_country_abbr

"""
Sub-Country Abbreviation
------------------------

Functions querying 'P300' (ISO 3166-2 code) information.

This property is used to derive abbreviations for country sub-regions.

Contents
    query_prop_data
"""

from wikirepo.data import data_utils

pid = "P300"
sub_pid = None
col_name = "sub_abbr"
col_prefix = None
ignore_char = ""
span = False


[docs]def query_prop_data( dir_name=None, ents_dict=None, locations=None, depth=0, timespan=None, interval=None ): """ Queries data for the module property for given location(s), depth, timespan and interval. """ df, ents_dict = data_utils.query_wd_prop( dir_name=dir_name, ents_dict=ents_dict, locations=locations, depth=depth, timespan=timespan, interval=interval, pid=pid, sub_pid=sub_pid, col_name=col_name, col_prefix=col_prefix, ignore_char=ignore_char, span=span, ) return df, ents_dict