diff --git a/src/coldfront_plugin_cloud/management/commands/fetch_daily_billable_usage.py b/src/coldfront_plugin_cloud/management/commands/fetch_daily_billable_usage.py index 18d4c9a..c32206b 100644 --- a/src/coldfront_plugin_cloud/management/commands/fetch_daily_billable_usage.py +++ b/src/coldfront_plugin_cloud/management/commands/fetch_daily_billable_usage.py @@ -192,7 +192,9 @@ def s3_client(self): def load_csv(location) -> DataFrameGroupBy: df = pandas.read_csv( location, - dtype={INVOICE_COLUMN_COST: pandas.ArrowDtype(pyarrow.decimal128(12, 2))}, + ) + df = df.astype( + {INVOICE_COLUMN_COST: pandas.ArrowDtype(pyarrow.decimal128(12, 2))} ) return df.groupby(INVOICE_COLUMN_ALLOCATION_ID)