I have the pandas data frame. I want to write it in a text file and add text on the top of the frame.
e.g (this is the data.
0 <+000.0 +000.0 +050.0 +000.8>
1 <+000.0 +000.0 +049.1 +000.6>
2 <+000.0 +000.0 +047.6 +000.6>
3 <+000.0 +000.0 +046.5 +000.5>
4 <+000.0 +000.0 +045.3 +000.6>
I want to write it to the file (file.txt) but the following text should be in the file:
#my meas.
#done by me.
#pdd
0 <+000.0 +000.0 +050.0 +000.8>
1 <+000.0 +000.0 +049.1 +000.6>
2 <+000.0 +000.0 +047.6 +000.6>
3 <+000.0 +000.0 +046.5 +000.5>
4 <+000.0 +000.0 +045.3 +000.6>
as I'm new to this, I managed only to create the data frame and write it to a csv file.
Please help.