Hi,
I am trying to import an excel file to Data table, but I am having constantly this error:
anvil.tables.TableError: Column ‘Data_fattura’ is a date - cannot set it to a datetime
The excel file does not contain time in the date, I checked also putting formula to remove timestamp.
What is the correct format to allow import the date in Anvil Data table?
I am using this code with Uplink:
@anvil.server.callable
def store_data(file):
with open(file.name, "rb") as f:
df = pd.read_excel(f)
for d in df.to_dict(orient="records"):
app_tables.input.add_row(**d)
Thanks
