这是how to write a single row cell by cell and fill it in csv file
上的后续问题 import pandas as pd
delim = "@@@"
# just for abrevation
tmp = pd.read_csv("mycsv.csv",sep='@@@')
tmp.loc[0,:] = "None"
tmp.to_csv("mycsv.csv",sep=delim,index=False)
我正在跟踪错误。请提出一些正确的解决方案
self.writer = csv.writer(f, **writer_kwargs)
TypeError: "delimiter" must be a 1-character string
Exception ignored in: <module 'threading' from
Traceback (most recent call last):
line 1296, in _shutdown
_main_thread._delete()
File /share/python-3.6.1/linux_x86_64/lib/python3.6/threading.py", line 1015,
in _delete
del _active[get_ident()]
KeyError: 140613724829696