This program processes a CSV file containing employee data. Once the data is loaded into memory, it performs various operations on it.
-
Gender Count: The program counts the number of men and women among the total employees.
-
Sum of Salaries (Company 1, Work Center CT2): It calculates the sum of the gross annual salary of employees from company 1 (Equilibra IT) and work center CT2 (Alovera).
-
List of Relevant Employees (Company 2, Salary > 28000): It prints a list of employees who earn more than 28000 euros and belong to company 2 (Equilibra RRHH). It displays their ID, name, last name, salary, and company.
-
Create a Python environment:
python -m venv environment
-
Activate the environment:
environment\Scripts\activate
-
Install the requirements:
pip install -r requirements.txt
-
Create a Python environment:
python3 -m venv environment
-
Activate the environment:
source environment/bin/activate
-
Install the requirements:
pip3 install -r requirements.txt
python main.py
python3 main.py
To execute the unit tests, write "pytest" in the command line.
pytest