from pandas import read_csv
df = read_csv(
'D:\\PDA\\4.11\\data.csv',
sep=" ",
names=['band', 'area', 'num']
)
df = df.astype(str)
tel = df['band'] + df['area'] + df['num']
df['tel'] = tel
from pandas import read_csv
df = read_csv(
'D:\\PDA\\4.11\\data.csv',
sep=" ",
names=['band', 'area', 'num']
)
df = df.astype(str)
tel = df['band'] + df['area'] + df['num']
df['tel'] = tel
本文标题:Python 字段合并
本文链接:https://www.haomeiwen.com/subject/qsvbdxtx.html
网友评论