income.columns = income.columns.str.replace('Y' , 'Year ')
income.columns
ALTER TABLE table_name
RENAME COLUMN column_name TO new_column_name;
Code language: SQL (Structured Query Language) (sql)
df.rename(columns={"Airline": "Airline_Code", "AirportFrom":"Airport_From"})