Skip to content

Commit aa758db

Browse files
authored
Merge pull request #290 from QuanMPhm/fix/pandas.3
Fix pandas bug
2 parents 90bd077 + b508c66 commit aa758db

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ boto3>=1.42.6,<2.0
33
kubernetes
44
openshift
55
coldfront >= 1.1.0
6-
pandas
6+
pandas>=3.0, <4.0
77
pyarrow
88
pydantic
99
python-cinderclient # TODO: Set version for OpenStack Clients

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ install_requires =
3232
python-swiftclient
3333
requests < 3.0
3434
simplejson < 4.0
35-
pandas
35+
pandas >=3.0, <4.0
3636
pyarrow
3737
pytz
3838

src/coldfront_plugin_cloud/management/commands/fetch_daily_billable_usage.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ def s3_client(self):
192192
def load_csv(location) -> DataFrameGroupBy:
193193
df = pandas.read_csv(
194194
location,
195+
engine="pyarrow",
195196
dtype={INVOICE_COLUMN_COST: pandas.ArrowDtype(pyarrow.decimal128(12, 2))},
196197
)
197198
return df.groupby(INVOICE_COLUMN_ALLOCATION_ID)

0 commit comments

Comments
 (0)