SyntaxFix
Write A Post
Hire A Developer
Questions
Try something like this:
df.select([c for c in df.columns if c in ['_2','_4','_5']]).show()