
1
test4['m_type'] = test4['mc_s'].astype(np.str) +test4['mn_s'].astype(np.str) +test4['mw_s'].astype(np.str) #将各列内容分别组合

2
test4['m_type'] = test4['mc_s'].astype(np.str) +test4['mn_s'].astype(np.str) +test4['mw_s'].astype(np.str) #将各列内容分别组合