Skip to content

Commit

Permalink
Specify verra datetime format
Browse files Browse the repository at this point in the history
Verra reports all dates in the following format: %d-%m-%Y. Specify that
date format to avoid parsing errors.
  • Loading branch information
badgley committed Dec 5, 2023
1 parent a7877dd commit e7cc112
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion offsets_db_data/vcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def process_vcs_credits(
)
.clean_and_convert_numeric_columns(columns=['Total Vintage Quantity', 'Quantity Issued'])
.set_vcs_vintage_year(date_column='Vintage End')
.convert_to_datetime(columns=['transaction_date'])
.convert_to_datetime(columns=['transaction_date'], date_format='%d-%m-%Y')
)

issuances = data.calculate_vcs_issuances()
Expand Down

0 comments on commit e7cc112

Please sign in to comment.