
Python pandas(Dataframe)里使用lambda匿名函数if..else表达式
records_df['Name'] = records_df['Name'].apply(lambda x: '基金' if x is None else x) records_df['Industry'] = records_df['Industry'].apply(lambda x: '公募基金' if x is None else x)
👁️ 阅读量:0
© 版权声明:本文《Python pandas(Dataframe)里使用lambda匿名函数if..else表达式》内容均为本站精心整理或网友自愿分享,如需转载请注明原文出处:https://www.zastudy.cn/wen/1686497984a270694.html。