Answers for "add a column of 1s"

1

how to add coloumn based on other column

metadata['class_pnemonia'] = metadata['class'].astype('category').map({0: 'HEALTHY ', 1: 'PNEUMONIA'})
Posted by: Guest on August-09-2021
0

Add a new column into table

ALTER TABLE table ADD [COLUMN] column_name;
Posted by: Guest on April-28-2021

Browse Popular Code Answers by Language