只返回该列,而不是
pass当条件为时不执行任何 *** 作
False:
current['New Type'] = np.where(current['In Previous']=='Yes','In Previous',current['New Type'] )
或者,您可以掩盖这些行:
current['New Type'] = current.loc[current['In Previous']=='Yes', 'In Previous']
欢迎分享,转载请注明来源:内存溢出
只返回该列,而不是
pass当条件为时不执行任何 *** 作
False:
current['New Type'] = np.where(current['In Previous']=='Yes','In Previous',current['New Type'] )
或者,您可以掩盖这些行:
current['New Type'] = current.loc[current['In Previous']=='Yes', 'In Previous']
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)