Hello!
I have a seemingly easy problem that I am trying to solve. I have generated a journal report and I would like to format it in to csv.
My question is: How is the journal report delimited? I have tried to use sep= "/s+" and "/t"
in pandas but for some reason it does not recognize either and just returns 1 column.
Here is my code:
In terminal: bean-report ledger.beancount journal -a Assets:Bank -b -w 120 > report.csv
In pycharm:
import pandas as pd
df = pd.read_csv("report.csv", sep='/s+', header=None, engine="python")
print(df)
(the returned dataframe is just one column)
Is there an obvious reason to why I am unable to parse the report?
If anyone has a good solution to this I would greatly appreciate it!
Thanks,
Viggo