Conclusion
import pandas as pd
n0 = ["a", "b", "c"]
n1 = ["aa", "bb", "cc", "dd", "ee", "ff", "gg"]
n2 = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
nn = [n0, n1, n2]
print(nn)
df = pd.DataFrame(nn)
df = df.T
print(df)
savefile = "testcsv.csv"
df.to_csv(savefile, encoding="utf_8_sig")
Recommended Posts