-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove pandas support #14
base: main
Are you sure you want to change the base?
Conversation
…xperiment/remove-pandas # Conflicts: # demo/personal_finance.py # requirements.txt
pyluca/ledger.py
Outdated
|
||
def get_aging(self, account: str): | ||
return get_account_aging(self.config, self.journal.entries, account, self.journal.entries[-1].date) | ||
|
||
def add_account_balance(self, account: str, df: pd.DataFrame): | ||
return add_account_balance(self.config, df, account) | ||
def add_account_balance(self, account: str, ledger: List[LedgerDict]): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This function is not necessary. get_balance_sheet is the only function that will be exposed
pyluca/ledger.py
Outdated
@@ -22,17 +32,27 @@ def get_account_balance(self, account: str): | |||
return self.get_account_dr(account) - self.get_account_cr(account) | |||
return self.get_account_cr(account) - self.get_account_dr(account) | |||
|
|||
def get_df(self) -> pd.DataFrame: | |||
return pd.DataFrame([j.__dict__ for j in self.journal.entries]) | |||
def get_ledger(self) -> List[LedgerDict]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ledger.get_ledger
does not makes sense. Remove this function. get_balance_sheet is enough
No description provided.