Skip to content

Commit

Permalink
Drop null values from salary types during transform
Browse files Browse the repository at this point in the history
  • Loading branch information
ghukill committed Aug 2, 2024
1 parent 3a304fa commit 72dd762
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hrqb/tasks/salary_change_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@ def requires(self) -> list[luigi.Task]: # pragma: nocover

def get_dataframe(self) -> pd.DataFrame:
fields = {"hr_personnel_action": "Salary Change Type"}
return (
salary_types_df = (
self.single_input_dataframe[fields.keys()]
.drop_duplicates()
.rename(columns=fields)
)
return salary_types_df[~salary_types_df["Salary Change Type"].isna()]


class LoadSalaryChangeTypes(QuickbaseUpsertTask):
Expand Down

0 comments on commit 72dd762

Please sign in to comment.