Open yibenhuang opened 1 year ago
Describe the bug Hi, just found the country name "Virgin Islands (British)" would be failed to clean to the correct name.
To Reproduce
import pandas as pd from dataprep.clean import clean_country df = pd.DataFrame({"country": ["Virgin Islands (British)", "Virgin Islands (U.S.)"]}) clean_country(df, column="country", output_format="name")
Expected behavior The based on project country_converter can work like below.
import country_converter as coco names = ["Virgin Islands (British)", "Virgin Islands (U.S.)"] cc = coco.CountryConverter() cc.convert(names=names, to="name_short") # Output: ['British Virgin Islands', 'United States Virgin Islands']
Desktop (please complete the following information):
Describe the bug Hi, just found the country name "Virgin Islands (British)" would be failed to clean to the correct name.
To Reproduce
Expected behavior The based on project country_converter can work like below.
Desktop (please complete the following information):