first column of dataframe code example
Example 1: pandas print first column
df = pd.DataFrame({"Letters": ["a", "b", "c"], "Numbers": [1, 2, 3]})
first_column = df.iloc[:, 0]
Example 2: pd.dataframe initial columns
import pandas as pd
df = pd.DataFrame(columns = ['Name', 'Age'])
Example 3: how to select a column with brackets in jupyter notebook
df ['Position']