python我想选出df的某几列,这几列的列名存在list里面,代码怎么写最简便?

2025-06-27 02:06:38
推荐回答(1个)
回答1:

这么简单。。。。
a = df.loc[:, ls]