I have a ".dat" file that looks like this:
You can download it here: https://filebin.net/hnhsv8sc3zvaoi8k
I would like to read this file into a pandas data frame. I have found this question and tried the solution:
with open('Output2.dat','r') as f:
df = pd.DataFrame(l.rstrip().split() for l in f)
The result looks like that:
- the row "Balance" was displaced, How to change that?
- How can I make sure that the first row is added as pandas column titles?
Thank you very much.
EDIT: This is how the final Table should look like: