pandas 给某一列添加字符串或者添加新的列

pandas 给某一列添加字符串或者添加新的列

即可!

添加新的列:

data['m'] = data['code'].str[:4]

相关文章: