# Import the library and create a dataframe object
import pandas
df = pandas.DataFrame({'A': [1, 2], 'B': [10, 20]})
# Access the column column = df['A']
# Print out the column print(column)
Practice what you just learned
Solve Python exercises and get instant AI feedback on your solutions.
Try ActiveSkill for Free →
Python Mega Course: Learn Python in 60 Days, Build 20 Apps
Learn Python on Udemy completely in 60 days or less by building 20 real-world applications from web development to data science.
