This question has been asked before but those solutions didn't work for me. I have a csv file, example.csv, with data in the following format:
grid,u,lambda
0.0,0.0,-93000
0.01,-0.01,-93000
0.02,0.05,-93000
Now I have a function f.fraction('function') which returns me [1.00000000e+00 1.00000000e+00 1.00000000e+00]. I want to append this to the same file, example.csv. the final result:
grid,u,lambda,new_function
0.0,0.0,-93000,1.00000000e+00
0.01,-0.01,-93000,1.00000000e+00
0.02,0.05,-93000,1.00000000e+00
How can I do this?