human
how to get the column names in dataset.
assistant
Here is a Python program to get the column names in datasets

import pandas as pd

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

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

# Calling the function
column_names = get_column_names(df)

# Printing the column names
print(column_names)

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

#Remember to inspect code for bugs.