Saving pandas DataFrame in a middle of a of a apply loop
When whorking with pandas, it is necessary to use apply
or map
function. In my case, I have a very long (14 hours) traitement of my data to do and I want to save the DataFrame if any error raise in the middle.