How can I adapt my code to make it compatible to Microsoft Excel?

前端 未结 2 1849
臣服心动
臣服心动 2021-01-27 09:34

Problem

I was trying to implement an web API(based on Flask), which would be used to query the database given some specific con

相关标签:
2条回答
  • 2021-01-27 10:10
    • How are you importing the csv file to excel? Have you tried importing the csv as a text file?

    By reading as text format for each column, it wont modify columns that it reads as different types like dates. Your code may be correct, and excel may just be modifying the data when it parses it as a csv - by importing as text format, it wont modify anything.

    0 讨论(0)
  • 2021-01-27 10:10

    I would recommend you look into xlutils. It's been around for quite some time, and our company has used it both for reading configuration files to run automated test and for generating reports of test results.

    0 讨论(0)
提交回复
热议问题