Closed Paulooh007 closed 6 months ago
Thank you for writing up this issue!
Ultimately, I expect this project won't have any Jupyter Notebooks per:
However, I think there's still value in refining the code:
- Suppressing unnecessary warnings in cell outputs.
Yes, good
Moving long dictionaries and lengthy functions to a separate utilities file, which will help declutter the notebook, making it easier to navigate and understand.
(Strikethrough added) One of the strengths of Jupyter Notebooks is showing the narrative, code, and figures all together. This change would "hide" some of the code. I don't think it is worth pursuing.
- Replacing explicit loops with vectorized operations, such as .map() and list comprehensions, to improve performance and conciseness.
Yes, good
- Suppressing unnecessary warnings in cell outputs.
- Moving long dictionaries and lengthy functions to a separate utilities file, which will help declutter the notebook, making it easier to navigate and understand.
- Replacing explicit loops with vectorized operations, such as .map() and list comprehensions, to improve performance and conciseness.
Thanks, I'll submit a PR for this asap.
Problem
I'll like to refactor visualization_engineering.ipynb due to the following reasons.
Notebook generates unnecessary warnings in cell outputs, affecting readability.
The presence of long dictionaries and lengthy functions detracts from the notebook's clarity. Here's an example
The reliance on explicit loops for data manipulation leads to less efficient and less readable code. Here's one of many example.
which can be refactored to be:
Description
Implementing these changes will make the notebook more efficient, easier to maintain, and also reduces the length of the notebook.
Implementation