Skip to content

Commit

Permalink
Merge pull request #60 from QuanMPhm/56/format_rates
Browse files Browse the repository at this point in the history
Loads invoice "rate" field as string to suppress scientific notation representation
  • Loading branch information
QuanMPhm authored Jun 14, 2024
2 parents 0400557 + 26d9e3c commit fd2125d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion process_report/process_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
INSTITUTION_ID_FIELD = "Institution - Specific Code"
SU_HOURS_FIELD = "SU Hours (GBhr or SUhr)"
SU_TYPE_FIELD = "SU Type"
RATE_FIELD = "Rate"
COST_FIELD = "Cost"
CREDIT_FIELD = "Credit"
CREDIT_CODE_FIELD = "Credit Code"
Expand Down Expand Up @@ -327,7 +328,11 @@ def merge_csv(files):
dataframes = []
for file in files:
dataframe = pandas.read_csv(
file, dtype={COST_FIELD: pandas.ArrowDtype(pyarrow.decimal128(12, 2))}
file,
dtype={
COST_FIELD: pandas.ArrowDtype(pyarrow.decimal128(12, 2)),
RATE_FIELD: str,
},
)
dataframes.append(dataframe)

Expand Down

0 comments on commit fd2125d

Please sign in to comment.