This commit is contained in:
Cayo Puigdefabregas 2024-03-18 12:57:11 +01:00
parent 30d72c2181
commit 96481d7baf
1 changed files with 1 additions and 1 deletions

View File

@ -225,7 +225,7 @@ class ImportForm(forms.Form):
props = self.json_schema.get("properties", {})
# Forze than pandas read one column as string
dtype_dict = {"phoneNumber": str}
dtype_dict = {"phoneNumber": str, 'postCode': str}
df = pd.read_excel(data, dtype=dtype_dict)
df.fillna('', inplace=True)