Skip to content

Commit

Permalink
Remove use of chained assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
samdoran committed May 8, 2024
1 parent 8af1135 commit 303126c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion koku/masu/util/gcp/gcp_post_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ def _generate_daily_data(self, data_frame):
rollup_frame["credits"] = rollup_frame["credits"].apply(json.loads)
rollup_frame["daily_credits"] = 0.0
for i, credit_dict in enumerate(rollup_frame["credits"]):
rollup_frame["daily_credits"][i] = credit_dict.get("amount", 0.0)
rollup_frame.loc[:, ("daily_credits", i)] = credit_dict.get("amount", 0.0)

resource_df = rollup_frame.get("resource_name")
try:
if not resource_df:
Expand Down

0 comments on commit 303126c

Please sign in to comment.