Skip to content

completed assignment -2#2

Open
Mrs-Aqeel wants to merge 1 commit intomainfrom
assignment-2
Open

completed assignment -2#2
Mrs-Aqeel wants to merge 1 commit intomainfrom
assignment-2

Conversation

@Mrs-Aqeel
Copy link
Copy Markdown
Owner

What changes are you trying to make? (e.g. Adding or removing code, refactoring existing code, adding reports)
i entered the desired codes

What did you learn from the changes you have made?
i learnt the for loops

Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?
i did what i thought was the right approach

Were there any challenges? If so, what issue(s) did you face? How did you overcome it?
How were these changes tested?
by running codes

A reference to a related issue in your repository (if applicable)
NA

Checklist
I can confirm that my changes are working as intended
CONFIRM

},
"outputs": [],
"source": [
"with open(all_paths[0], 'r') as f:\n",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please delete this line of code here. This code will not run without defining the all-paths, so this code should not be in front of the all_paths definition.

" # if the operation is not one of the expected values, raise an error\n",
" raise ValueError(\"Invalid operation. Please choose 'mean', 'max', or 'min'.\")\n",
"\n",
" return summary_values"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here you have defined 'result' as mean, max and min, but at the end you return 'summary_values'. So, summary_values is not deinfed and next code could not run

"source": [
"# Define your function `detect_problems` here\n",
"\n",
"def detect_problems(file_path):\n",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this code was doubled here. please delete one

@danielrazavi
Copy link
Copy Markdown

It looks like there are no changes in your assignment-2 branch pull request. I noticed you made changes recently, so I investigated further. It turns out the changes you made were on the patch-2 branch, not the assignment-2 branch.

Unfortunately, the assignment 2 notebook in the patch-2 branch is broken. It seems that some lines were deleted, which has caused the notebook's underlying JSON to become invalid. As a result, the notebook cannot be opened or rendered properly in Visual Studio Code. Because of this, I strongly recommend that you do not merge patch-2 into assignment-2 or any other branch. Merging would carry over these issues to other branches and break them as well.

Here’s what I recommend instead:

  1. Review the changes you made in the patch-2 branch.
  2. Reapply those changes manually to the assignment-2 branch without copying the broken parts.

This will help you avoid spreading the issues from patch-2. Also, make sure not to merge the assignment-2 branch into main until your work is complete and the notebook is functioning properly.

@Mrs-Aqeel
Copy link
Copy Markdown
Owner Author

Mrs-Aqeel commented Dec 19, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants