/src/python_basics.py
file contains two functions.
square_list
weighted_sum
The task is to write implementation of these two functions. Once the implementation is done, use pytest to validate if your answers were correct.
The instruction for implementation of each function is contained inside the doc string of the same function.
Do not modify the any other file in the repo when submitting the result.
/src/sql_basics.py
file contains two functions.
group_by_and_aggregate
join_dataframes
The task is to write implementation of these two functions. Once the implementation is done, use pytest to validate if your answers were correct.
The instruction for implementation of each function is contained inside the doc string of the same function.
Do not modify the any other file in the repo when submitting the result.
Each question carry equal weight in terms of marks. Total marks is 100. For each failing test, 25 marks are deducted from the total. We expect you to get 75 marks to pass this stage.
The code requires python 3.x.x to run.
- Clone the repo by running
git clone https://github.com/zainulabidin302/python-assessment.git
from command line or download the zip of the code from the same url.
- (Optional) Create a
conda
orvirtualenv
and activate it. - Install the requirements with
pip install -r requirements.txt
- For conda users: install dependencies with
conda install --yes --file requirements.txt
- Implement the solution. Take a closer look at the doc strings for details of implementation.
- Run
pytest
to verify all the code is running. - In root directory, run
python src/submit.py <your-email-address>
(Notice: Step 7 command will send your solution to our servers for grading and informing HR. Make your tests are passing with pytest before sending your solution. You only have 3 attempts.)