import pandas as pd assert contentreturn pd.read_csv(content)
然而,我总是得到错误的TypeError: StringIO() argument 1 must be string or buffer, not cStringIO.StringIO
我试图从一个url向excel中插入一个图像,但是我得到了这个错误: coercing to Unicode: need string or buffer, cStringIO.StringO found下面是我的代码: import cStringIOimport urllib
ws = wb.add_sheetsheet 1')
url= 'this url contains the url of an image'