generate functionThu, 30 Mar 2023

add a new column called "TV" in dataframe called "df"

def add_tv(df): df['TV'] = df['TV'] * 2 return df df = add_tv(df)

Questions about programming?Chat with your personal AI assistant