×
Aug 23, 2017 · I would like a way to delete these using a simple line of code that says, delete all columns besides a and b , because let's say hypothetically ...
Missing: q= https% 3A% 2Fserverfault. 2Fquestions% 2F737058% 2Fsuppressdescription-
People also ask
Apr 21, 2015 · When the columns are not a MultiIndex, df.columns is just an array of column names so you can do: df.loc[:, df.columns !=
Missing: q= 3A% 2Fserverfault. 2Fquestions% 2F737058% 2Fsuppressdescription-