依赖df.apply中的 result_type='expand'

def merge_tri_to_item(df):
    return [item_name, item_state, item_status]
items_df[['item_name', 'item_state', 'item_status',]] = items_df.apply(merge_tri_to_item,axis=1,result_type='expand')

这样可以完成多列的数据添加

相关文章:

  • 2021-06-06
  • 2021-08-04
  • 2022-12-23
  • 2022-12-23
  • 2022-01-23
  • 2021-09-17
  • 2021-06-10
  • 2022-01-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-01
  • 2021-09-24
相关资源
相似解决方案