NDFrame.drop can be called with labels and axis, or with index, or with columns. There should be Just One Way. Let's deprecate the index/columns variants
Comment From: phofl
I am always using columns when I want to drop something, I think this might be very widely used.
Comment From: mroeschke
reindex
also has a similar signature.
Could be an argument to deprecating the labels/axis combo instead so the index & columns could be replaced in 1 call rather than 2?
Comment From: jbrockmendel
Could be an argument to deprecating the labels/axis combo instead so the index & columns could be replaced in 1 call rather than 2?
Either way would satisfy The Highlander Principle which is my main concern. The two-calls-vs-one thing I'd agree if it makes a perf difference (haven't checked).
I have a slight preference towards the labels/axis version bc it would make the Series/DataFrame signatures the same.
Comment From: jbrockmendel
same(ish) for rename_axis