Text File: I have a text file containing more than 87,000 data points. The format of the text file is as follows:
- X Coordinate ----- Y Coordinate ------- Parameter 1 ------ Parameter 2--------
- 2.744596610E-02 1.247197202E+00 7.121462841E-03 2.467938066E-05
- 2.732558411E-02 1.242196291E+00 1.365028508E-02 6.262368697E-05
- 2.713870635E-02 1.227254209E+00 1.958976965E-03-3.179617352E-06
There is no space between the two numbers highlighted in bold because of the leading - (minus) sign, because of which the resulting csv/pandas dataframe results in something like below.
Output:
| X Coordinate | Y Coordinate | Parameter 1 | Parameter 2 |
| -------------- | -------------- | --------------- | ------------ |
| 2.744596610E-02 | 1.247197202E+00 | 7.121462841E-03 | 2.467938066E-05 |
| 2.732558411E-02 | 1.242196291E+00 | 1.365028508E-02 | 6.262368697E-05 |
| 2.713870635E-02 | 1.227254209E+00 | 1.958976965E-03-3.179617352E-06| |
Required:
| X Coordinate | Y Coordinate | Parameter 1 | Parameter 2 |
| -------------- | -------------- | --------------- | ------------ |
| 2.744596610E-02 | 1.247197202E+00 | 7.121462841E-03 | 2.467938066E-05 |
| 2.732558411E-02 | 1.242196291E+00 | 1.365028508E-02 | 6.262368697E-05 |
| 2.713870635E-02 | 1.227254209E+00 | 1.958976965E-03 |-3.179617352E-06 |
I am comfortable with python/pandas, so any of the programming techniques would be of great help.