woodwork.logical_types.SubRegionCode#
- class woodwork.logical_types.SubRegionCode[source]#
- Represents Logical Types that use the ISO-3166 standard sub-region code to represent a portion of a larger geographic region. ISO 3166-2 (sub-regions) codes are supported. These codes should be in the Alpha-2 format. - Examples - ["US-CO", "US-MA", "US-CA"] ["AU-NSW", "AU-TAS", "AU-QLD"] - __init__()#
 - Methods - __init__()- transform(series[, null_invalid_values])- Converts the series dtype to match the logical type's if it is different. - validate(series, *args, **kwargs)- Validates that a logical type is consistent with the series dtype. - Attributes - backup_dtype- primary_dtype- standard_tags- type_string