How can i append data frame to an existing csv files in python? I am using the following code but this does not check if the columns are matching or not.
new_dat