Adding metadata / identifier data to a CSV file?

前端 未结 3 712
一向
一向 2021-02-12 23:42

Is there a way to add a \"tag\" (add a unique metadata/identifier) to a CSV file without affecting the contents or ability to read/write the file?

I am using Python, but

3条回答
  •  鱼传尺愫
    2021-02-13 00:19

    In case you are not sure that all possible readers/writers of the file will be able to interpret (and preserve) comments, create the tag in a second file using some name convention that links them. Example:

    myCSVFile.csv
    myCSVFile.csv.tag
    

提交回复
热议问题