human
Can you show me a Python code to delete columns from data frame in Panda.
assistant
Here is a Python code to delete columns from data frame in pandas

import pandas as pd

def del_col(df, col):
    """Delete column from data frame in pandas"""
    return df.drop(columns=col)

# Enter the data frame
df = pd.DataFrame({'a': [1, 2, 3], 'b': [4, 5, 6], 'c': [7, 8, 9]})

# Calling the function
print((del_col(df, ['a', 'b'])))

#Example Output
#    c
# 0  7
# 1  8
# 2  9

#Remember to inspect code for bugs.