Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to add coloumn based on other column

metadata['class_pnemonia'] = metadata['class'].astype('category').map({0: 'HEALTHY ', 1: 'PNEUMONIA'})
 
PREVIOUS NEXT
Tagged: #add #coloumn #based #column
ADD COMMENT
Topic
Name
3+7 =