SyntaxFix
Write A Post
Hire A Developer
Questions
If you want to have a new data frame then:
import pandas as pd old = pd.DataFrame({'A' : [4,5], 'B' : [10,20], 'C' : [100,50], 'D' : [-30,-50]}) new= old[['A', 'C', 'D']]