用python淘汰excel篇:生成多一列并把里面的字符串的头尾去除【】
dfto1['newone'] = list(map(lambda s:s.strip("【").strip("】"),dfto1['title'].astype(str))) #把头尾的某个字符去掉,多用于去除空格
print(dfto1.head(10))
dfto1['newone'] = list(map(lambda s:s.strip("【").strip("】"),dfto1['title'].astype(str))) #把头尾的某个字符去掉,多用于去除空格
print(dfto1.head(10))