(202100219已解决)pandas删除全为0值的列

  • Overview

    df.loc[:, (df != 0).any(axis=0)]
    
  • Reference

  1. How do I delete a column that contains only zeros in Pandas?

猜你喜欢

转载自blog.csdn.net/The_Time_Runner/article/details/113914426