Extracting columns containing a certain name

后端 未结 3 1436
鱼传尺愫
鱼传尺愫 2021-01-18 04:38

I\'m trying to use it to manipulate data in large txt-files.

I have a txt-file with more than 2000 columns, and about a third of these have a title which contains th

3条回答
  •  一向
    一向 (楼主)
    2021-01-18 05:03

    You can use pandas filter function to select few columns based on regex

    data_filtered = data.filter(regex='net')
    

提交回复
热议问题