df['Name']='abc'将添加新列并将所有行设置为该值:
In [79]:dfOut[79]: Date, Open, High, Low, Close0 01-01-2015, 565, 600, 400, 450In [80]:df['Name'] = 'abc'dfOut[80]: Date, Open, High, Low, Close Name0 01-01-2015, 565, 600, 400, 450 abc
欢迎分享,转载请注明来源:内存溢出
df['Name']='abc'将添加新列并将所有行设置为该值:
In [79]:dfOut[79]: Date, Open, High, Low, Close0 01-01-2015, 565, 600, 400, 450In [80]:df['Name'] = 'abc'dfOut[80]: Date, Open, High, Low, Close Name0 01-01-2015, 565, 600, 400, 450 abc
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)