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
2 changes: 1 addition & 1 deletion pdf_statement_reader/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

click.echo("Converted {} and saved as {}".format(input_filename, output_filename))


Expand Down