get 2 columns from dataframe pandas code example
Example 1: df only take 2 columns
df1 = df[['a', 'b']]
Example 2: select 2 cols from dataframe python pandas
# Convert the dictionary into DataFrame
df = pd.DataFrame(data)
# select two columns
df[['Name', 'Qualification']]