Select columns from a pandas dataframe

less than 1 minute read

Select columns from a pandas dataframe

selected = df[['col1','col2']]

Leave a comment