Subash Chandran posted: "#using the insert function: df.insert(location, column_name, list_of_values) #example df.insert(0, 'new_column', ['a','b','c']) #explanation: #put "new_column" as first column of the dataframe #and puts 'a','b' and 'c' as values #using array-l"
|

No comments:
Post a Comment
Note: Only a member of this blog may post a comment.