Skip to content

Completed Assignment 2#2

Open
ffarashid wants to merge 8 commits intomainfrom
assignment-2
Open

Completed Assignment 2#2
ffarashid wants to merge 8 commits intomainfrom
assignment-2

Conversation

@ffarashid
Copy link
Copy Markdown
Owner

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

What did you learn from the changes you have made?

Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?

Were there any challenges? If so, what issue(s) did you face? How did you overcome it?

How were these changes tested?

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

Checklist

  • I can confirm that my changes are working as intended

Copy link
Copy Markdown

@anjali-deshpande-hub anjali-deshpande-hub left a comment

Choose a reason for hiding this comment

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

Well done! Just one change requested:
Replace the hardcoded absolute paths to relative paths so that a Learning support can run the code successfully as well. For example: change r"C:\Users\farha\python\05_src\data\assignment_2_data\inflammation_01.csv" to r"..\..\05_src\data\assignment_2_data\inflammation_01.csv"

Copy link
Copy Markdown

@anjali-deshpande-hub anjali-deshpande-hub left a comment

Choose a reason for hiding this comment

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

Review 2:
The assignment_2.ipynb is giving me an 'Invalid Notebook' error. Could you please check? https://github.com/ffarashid/python/blob/assignment-2/02_activities/assignments/assignment_2.ipynb
Screenshot attached:
Screenshot 2025-05-20 170315

@ffarashid
Copy link
Copy Markdown
Owner Author

ffarashid commented May 20, 2025 via email

@anjali-deshpande-hub
Copy link
Copy Markdown

Hello Farhan!

I am reviewing your latest commit. If you download/load the assignment_2.ipynb file in browser or VSCode, it displays the 'Invalid Notebook" error.
I think its because of an invalid string. If you notice carefully, all backslashes are not escaped. It should be: "r"..\..\05_src\data\assignment_2_data\inflammation_01.csv",\n" instead of "r"....\05_src\data\assignment_2_data\inflammation_01.csv",\n"
Screenshot 2025-05-20 174004

Hope this helps!

@ffarashid
Copy link
Copy Markdown
Owner Author

ffarashid commented May 20, 2025 via email

@anjali-deshpande-hub
Copy link
Copy Markdown

I can load the file successfully now.
But the hardcoded path still exists. If I run the code on my machine, it will give me error. In other words, the code is not portable, Therefore to fix it, please replace file paths
r"C:\Users\farha\python\05_src\data\assignment_2_data\inflammation_01.csv"
to
r"....\05_src\data\assignment_2_data\inflammation_01.csv"

I hope you understand the reason behind the change.

@ffarashid
Copy link
Copy Markdown
Owner Author

ffarashid commented May 20, 2025 via email

Copy link
Copy Markdown

@anjali-deshpande-hub anjali-deshpande-hub left a comment

Choose a reason for hiding this comment

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

The submission is still incorrect — the \ is missing.

Please make sure to run the code locally on your machine before submitting. The code should have given error on your machine.
Verifying locally will help avoid repeated issues and save time for reviewing.

@ffarashid
Copy link
Copy Markdown
Owner Author

ffarashid commented May 20, 2025 via email

@ffarashid
Copy link
Copy Markdown
Owner Author

ffarashid commented May 20, 2025 via email

Copy link
Copy Markdown

@anjali-deshpande-hub anjali-deshpande-hub left a comment

Choose a reason for hiding this comment

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

Fixed finally!! Good effort!

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.

2 participants