Open AlessandroLorenzi opened 1 year ago
update: in the csv "NA" is missing!
data_path = os.path.join(STORAGE_DIR, country.upper() + ".txt")
if os.path.exists(data_path):
data = pd.read_csv(
data_path, dtype={"postal_code": str}, na_values=NA_VALUES
)
# grep 80023 ~/.cache/pgeocode/IT.tx
IT,80023,Caivano,Campania,4,Napoli,,,,40.9575,14.3059,4.0
IT,80023,Pascarola,Campania,4,Napoli,,,,40.9764,14.305,4.0
hi @rth could you do a release? this feature is still not in latest version published
It's released now @AlessandroLorenzi thanks for the reminder.
Hi,
This is the data fetched from pgocode for 80030 postal code:
This is the raw from GeoNames:
The data from GeoNames dataset is correct, I assume that the library is misinterpreting NA as NaN.