human
collecting the column names in a dataframe.
assistant
Here is a Python program for collecting the column names in a dataframe

import pandas as pd

def get_column_names(df):
    """
    Returns the column names of the dataframe
    :param df: dataframe
    :return: list of column names
    """
    return df.columns

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

# Calling the function
print((get_column_names(df)))

#Example Output
# Index(['col1', 'col2'], dtype='object')

#Remember to inspect code for bugs.