I can concateante two columns using the following code:
engine = create_engine(f'postgresql+psycopg2://user:password@host/db')
result = engine.execute('SELECT concat(col_1, col_2) AS uid FROM db_table;')
and I can alter the table to create a new column:
engine.execute('ALTER TABLE db_table
ADD COLUMN concat_1_2 VARCHAR NOT NULL;')
But how can I insert the result query into the table in an efficient way (very large number of rows)?