If you have defined a DataFrame df which has a column a, then to access that column (a DataSeries object), you must enter df[a].
>

$\mathrm{df}\u2254\mathrm{DataFrame}\left(\u27e8\u27e81\2\u27e9\,\u27e83\4\u27e9\u27e9\,\mathrm{columns}\=\left[a\,b\right]\right)$

${\mathrm{df}}{\u2254}\left[\begin{array}{ccc}{}& {a}& {b}\\ {1}& {1}& {2}\\ {2}& {3}& {4}\end{array}\right]$
 (1) 
>

$\mathrm{df2}\u2254\mathrm{DataFrame}\left(\u27e8\u27e85\6\u27e9\,\u27e87\8\u27e9\u27e9\,\mathrm{columns}\=\left[a\,c\right]\right)$

${\mathrm{df2}}{\u2254}\left[\begin{array}{ccc}{}& {a}& {c}\\ {1}& {5}& {6}\\ {2}& {7}& {8}\end{array}\right]$
 (2) 
$\left[\begin{array}{cc}{1}& {1}\\ {2}& {3}\end{array}\right]$
 (3) 
However, after using the with(df) command, you can use the column name a directly, without specifying the DataFrame to which the column belongs.
>

$\mathrm{with}\left(\mathrm{df}\right)$

$\left[{a}{\,}{b}\right]$
 (5) 
$\left[\begin{array}{cc}{1}& {1}\\ {2}& {3}\end{array}\right]$
 (6) 
>

$\mathrm{unwith}\left(\mathrm{df}\right)$

As illustrated in the previous example, a list of the column names bound to the top level is returned by with.
Sometimes a column name is identical to a top level name with a global meaning. Global names are still fully accessible. To access the global name a after having bound a DataFrame that has a column named a, use the prefix form of the $:$ operator, as in $:a$ .
For example, the variable a may be in use.
After issuing a call to with(df), in which the name a occurs as a column label, the name a now refers to a column of data. The original variable is still available by using the syntax :a.
>

$\mathrm{with}\left(\mathrm{df}\right)$

$\left[{a}{\,}{b}\right]$
 (9) 
$\left[\begin{array}{cc}{1}& {1}\\ {2}& {3}\end{array}\right]$
 (10) 
In addition, two or more DataFrames may have columns with some of the same names. In this case, if both are bound using with, only the most recently bound value will be available at the top level by using a single variable name. In the following example, that is df2.
>

$\mathrm{with}\left(\mathrm{df2}\right)$

$\left[{a}{\,}{c}\right]$
 (12) 
$\left[\begin{array}{cc}{1}& {5}\\ {2}& {7}\end{array}\right]$
 (13) 
You can still refer to a column of any other DataFrame by naming the DataFrame it comes from, using syntax of the form df[':a']. If you were to write just df[a], then the variable a would first evaluate to the corresponding column of df2, and df cannot infer which column is meant. This results in an error message. Using the syntax :a makes sure that the global name a is used, not the column name from df2. In this case, that global name was assigned a value (namely, 12.3); we do not want :a to evaluate to that value either: if it would, then df could still not infer which column is meant. In order to prevent :a from evaluating, we use unevaluation quotes.
>

${\mathrm{df}}_{\':a\'}$

$\left[\begin{array}{cc}{1}& {1}\\ {2}& {3}\end{array}\right]$
 (14) 