Overview df.loc[:, (df != 0).any(axis=0)] Reference How do I delete a column that contains only zeros in Pandas?