SyntaxFix
Write A Post
Hire A Developer
Questions
You don't need to wrap it in a list with [..], just provide the subselection of the columns index:
[..]
df.drop(df.columns[[1, 69]], axis=1, inplace=True)
as the index object is already regarded as list-like.