# 26. Adding a column using existing columns df['CO_SFO'] = (df['Airline'] =='CO') & (df['AirportFrom'] == 'SFO')