1df.loc[:, df.columns != 'b']
2
3 a c d
40 0.561196 0.013768 0.772827
51 0.882641 0.615396 0.075381
62 0.368824 0.651378 0.397203
73 0.788730 0.568099 0.869127
1df[df.columns.difference(['b'])]
2
3Out:
4 a c d
50 0.427809 0.459807 0.333869
61 0.678031 0.668346 0.645951
72 0.996573 0.673730 0.314911
83 0.786942 0.719665 0.330833
9