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

Enhanced parsing functionality #50

Open
wants to merge 16 commits into
base: develop
Choose a base branch
from
Open

Conversation

flywire
Copy link
Contributor

@flywire flywire commented Jun 23, 2021

No description provided.

flywire added 7 commits June 23, 2021 21:05
* clean_prestrip - Remove key column transactions using value
* format_currency_number - Convert columns to numeric
* clean_unwrap - Key column and value column to unwrap
* clean_case - Change to Title Case
* support for regex

* clean_date customised for cba dd mmm format.
* logging added
logging.debug lines retained
Uses extended functionality
pdf_statement_reader/parse.py Outdated Show resolved Hide resolved
@@ -78,7 +78,7 @@ def pdf2csv(input_filename, output_filename=None, config_spec=None):
output_filename = input_filename.split(".pdf")[0] + ".csv"

df = parse_statement(input_filename, config)
df.to_csv(output_filename, index=False, float_format="%.2f")
df.to_csv(output_filename, index=False, float_format="%.2f", date_format='%d/%m/%y')
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggest json config support optional second date format for output

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.

1 participant