Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

Adding a column using existing columns

# 26. Adding a column using existing columns
df['CO_SFO'] = (df['Airline'] =='CO') & (df['AirportFrom'] == 'SFO')
Source by jyoti05iitd.medium.com #
 
PREVIOUS NEXT
Tagged: #Adding #column #existing #columns
ADD COMMENT
Topic
Name
4+3 =