I'm currently working on a Django project where users can upload a CSV file with headers in different languages.
My goal is to allow users to map these headers to the corresponding fields in my database model.
For example:
-
Fields in the database: (first name, last name, age, country)
-
User CSV header : (pays, prenom, nom, age)
In this scenario, the user has provided all the necessary fields but in French and in a different order.
After the user clicks the upload button, my plan is to load the CSV file into a table or another format that allows them to easily map the fields in the CSV file to the columns in my database.
Thank you in advance.
Tried using Pandas, but it just shows the CSV file as a table. No idea how to make the table header editable.
Via Active questions tagged javascript - Stack Overflow https://ift.tt/JzPBnYy
Comments
Post a Comment