# 根据两列数据进行操作
df.assign(new= lambda x : do_something(x.os,x.mac))
def do_something(x, y):
return x * y
df['new_col'] = map(lambda x, y: do_something(x, y) , df['col_1'], df['col_2'])
# 忽略警告信息
pd.options.mode.chained_assignment = None # default='warn'