Skip to content
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

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Remove pandas support #14

wants to merge 8 commits into from

Conversation

pskd73
Copy link
Contributor

@pskd73 pskd73 commented Apr 27, 2022

No description provided.

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]):
Copy link
Contributor Author

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]:
Copy link
Contributor Author

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

@sattyamjjain sattyamjjain changed the title WIP: Remove pandas Remove pandas support from pyLuca Apr 28, 2022
@pskd73 pskd73 changed the title Remove pandas support from pyLuca Remove pandas support Apr 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants