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

前端 未结 2 1889
臣服心动
臣服心动 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.

提交回复
热议问题