我们可以将突出显示的INTEGER值转换为STRING值(请参阅下面的链接)?
https://i.stack.imgur.com/3JbLQ.png
代码
filename = "newsample2.csv"
jsonFileName = "myjson2.json"
import pandas as pd
df = pd.read_csv ('newsample2.csv')
df.to_json('myjson2.json', indent=4)
print(df)
我们可以将突出显示的INTEGER值转换为STRING值(请参阅下面的链接)?
https://i.stack.imgur.com/3JbLQ.png
代码
filename = "newsample2.csv"
jsonFileName = "myjson2.json"
import pandas as pd
df = pd.read_csv ('newsample2.csv')
df.to_json('myjson2.json', indent=4)
print(df)