Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Copy Markdown
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