def assign_province_road_conditions(x):
    """Assign road conditions as paved or unpaved to Province roads

    Parameters
        x - Pandas DataFrame of values
            - code - Numeric code for type of asset
            - level - Numeric code for level of asset

    Returns
        String value as paved or unpaved
    """
    asset_code = x.code
    asset_level = x.level

    # This is an expressway, national and provincial road
    if asset_code in (17, 303) or asset_level in (0, 1):
        return 'paved'
    else:
        # Anything else not included above
        return 'unpaved'