Pandas get columns that contains an exact string name

后端 未结 0 620
清歌不尽
清歌不尽 2021-02-06 04:50

This line of code lets me extract the columns whose name contains the substring a.

data = {"a":[1], "a1":[2]}
df = pd.DataFrame.f         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题