Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

insert multiple column pandas

df['column_new_1'], df['column_new_2'], df['column_new_3'] = [np.nan, 'dogs', 3]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #insert #multiple #column #pandas
ADD COMMENT
Topic
Name
4+7 =