Skip to content

Commit 05c6461

Browse files
authored
Merge pull request #569 from ddps-lab/azure-collector-fix
price 정보가 없는 sps 정보 제거.
2 parents 70da871 + c36d8be commit 05c6461

File tree

1 file changed

+7
-0
lines changed
  • collector/spot-dataset/azure/lambda/current_collector/utils

1 file changed

+7
-0
lines changed

collector/spot-dataset/azure/lambda/current_collector/utils/merge_df.py

+7
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,11 @@ def merge_if_saving_price_sps_df(price_saving_if_df, sps_df, az=True):
4242
"SPS_Update_Time": "N/A"
4343
}, inplace=True)
4444

45+
join_df = join_df[
46+
~((join_df["OndemandPrice"] == -1) &
47+
(join_df["SpotPrice"] == -1) &
48+
(join_df["Savings"] == -1) &
49+
(join_df["IF"] == -1))
50+
]
51+
4552
return join_df

0 commit comments

Comments
 (0)