Skip to content

Commit e09fa9b

Browse files
authored
Merge pull request #4015 from NicholasTurner23/update/Integration-iqair-devices
Update/integration iqair devices
2 parents 7bd1427 + 5fbb05e commit e09fa9b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/workflows/airqo_etl_utils/data_validator.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,12 +159,12 @@ def remove_outliers(data: pd.DataFrame) -> pd.DataFrame:
159159
column_name=mapped_name, row_value=x
160160
)
161161
)
162-
else:
163-
data[col] = data[col].apply(
164-
lambda x: DataValidationUtils.get_valid_value(
165-
column_name=mapped_name, row_value=x
162+
else:
163+
data[col] = data[col].apply(
164+
lambda x: DataValidationUtils.get_valid_value(
165+
column_name=mapped_name, row_value=x
166+
)
166167
)
167-
)
168168
return data
169169

170170
@staticmethod

src/workflows/airqo_etl_utils/data_warehouse_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def extract_hourly_bam_data(
4545
},
4646
inplace=True,
4747
)
48-
data.loc[:, "device_category"] = str(DeviceCategory.BAM)
48+
data["device_category"] = str(DeviceCategory.BAM)
4949
return DataWarehouseUtils.filter_valid_columns(data)
5050

5151
@staticmethod

0 commit comments

Comments
 (0)