df
Selecting a single column yields a Series.
df['a']
1 4.0 2 5.0 3 NaN Name: a, dtype: float64
Select a single column to yield a DataFrame.
df[['a']]
Selecting multiple columns yields a DataFrame.
df[['a', 'c']]