Adding metadata / identifier data to a CSV file?

前端 未结 3 721
一向
一向 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:30

    Just add comment lines that you can parse later.

    #Creator:JohnSmith
    #Date:....
    #Columns:id,username,...
    1,JohnSmith
    2, ..
    

提交回复
热议问题