Selecting pandas dataframe column by list

前端 未结 4 2007
闹比i
闹比i 2020-12-24 02:27

in one of my scripts I\'m selecting several columns of a dataframe, by a list of the column names. The following code works:

data = df[lst]

4条回答
提交回复
热议问题