point8 / data-science-learning-paths

Practical data science courses
Other
23 stars 3 forks source link

🤖python-datavis: Inconsistent Usage of Plotting APIs #13

Open clstaudt opened 6 months ago

clstaudt commented 6 months ago

Labels: code, consistency, documentation Priority: Medium

Description: The notebook uses both pandas plotting and matplotlib for visualization without clearly explaining when and why to use one over the other. This might confuse beginners about best practices regarding plotting libraries.

Suggestion: Standardize the use of plotting libraries throughout the notebook or provide clear guidance on when to use pandas plotting versus matplotlib directly. Explain the advantages or use cases of each method to provide clarity to the reader.

Example Implementation:

Plotting with Pandas vs Matplotlib

In this notebook, we utilize both the pandas built-in plotting capabilities and the matplotlib library for creating visualizations. While pandas plotting provides a convenient interface to quickly generate standard plots from DataFrames, matplotlib offers more flexibility and customization options.

Use pandas plotting when:

Use matplotlib when:

clstaudt commented 6 months ago

FYI, I am experimenting with AI-driven reviews... will further sort through the generated issues.