mirror of
https://github.com/msitarzewski/agency-agents.git
synced 2026-10-20 18:25:02 +00:00
@@ -352,11 +352,11 @@ class RecruitmentFunnelAnalyzer:
|
||||
|
||||
def filter_data(self, position_id=None, department=None, period=None):
|
||||
filtered = self.data.copy()
|
||||
if position_id:
|
||||
if position_id is not None:
|
||||
filtered = filtered[filtered['position_id'] == position_id]
|
||||
if department:
|
||||
if department is not None:
|
||||
filtered = filtered[filtered['department'] == department]
|
||||
if period:
|
||||
if period is not None:
|
||||
filtered = filtered[filtered['period'] == period]
|
||||
return filtered
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user