Get name of colums where true in pandas dataframe

后端 未结 0 501
清歌不尽
清歌不尽 2020-11-27 04:37

Suppose I have the following pandas dataframe:

df = pd.DataFrame({\'id\': [1,2,3,4,5], \'a\': [True, True, False, True, False], \'b\': [False, True, False, Fa         


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