A computed column is a new column derived from others by a vectorized operation, such as an amount, a ratio or a category. You add it by assignment or with assign(), which returns a new DataFrame and lends itself to chaining.
Example
df['total'] = df['prix'] * df['quantite']