Answers for "add column 1 from fil1 to coloumn 2 from fule 2"

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

new column with addition of other columns

df['C'] = df.apply(lambda row: row['A'] + row['B'], axis=1)
Posted by: Guest on September-11-2021

Code answers related to "add column 1 from fil1 to coloumn 2 from fule 2"

Browse Popular Code Answers by Language