human
Give me a Python code to display specific columns.
assistant
Here is a Python code to display specific columns

import pandas as pd

def display_columns(df, columns):
    """Display specific columns"""
    for i in columns:
        print((df[i]))

# Enter the dataframe
df = pd.DataFrame({'col1': [1, 2, 3], 'col2': [4, 5, 6]})

# Enter the columns
columns = ['col1']

# Calling the function
print((display_columns(df, columns)))

#Example Output
# 0    1
# 1    2
# 2    3
# Name: col1, dtype: int64
# None

#Remember to inspect code for bugs.