Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃python-datavis: Inconsistent Usage of Plotting APIs #13

Open
clstaudt opened this issue Mar 11, 2024 · 1 comment
Open

馃python-datavis: Inconsistent Usage of Plotting APIs #13

clstaudt opened this issue Mar 11, 2024 · 1 comment
Assignees

Comments

@clstaudt
Copy link
Collaborator

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:

  • You want quick and easy visualization of DataFrame or Series data.
  • You are creating standard plots such as bar charts, line charts, or histograms.

Use matplotlib when:

  • You need fine-grained control over the elements of the plot.
  • You are creating complex or custom visualizations that are not directly supported by the pandas library.
@clstaudt clstaudt self-assigned this Mar 11, 2024
@clstaudt
Copy link
Collaborator Author

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

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

No branches or pull requests

1 participant