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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOC: added plotting module to the api reference docs #19780

Merged

Conversation

mehemken
Copy link
Contributor

Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

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

you seem to have added a bunch of files to the repo

@mehemken
Copy link
Contributor Author

@jreback Thanks for the quick feedback. The only changes I made were to doc/source/api.rst. Those files were automatically generated by the docs. Should I not include them in the commit? They look like they might be part of the examples.

@mehemken mehemken closed this Feb 20, 2018
@jreback
Copy link
Contributor

jreback commented Feb 20, 2018

no your don’t need to include them

@codecov
Copy link

codecov bot commented Feb 20, 2018

Codecov Report

Merging #19780 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #19780   +/-   ##
=======================================
  Coverage   91.61%   91.61%           
=======================================
  Files         150      150           
  Lines       48887    48887           
=======================================
  Hits        44786    44786           
  Misses       4101     4101
Flag Coverage Δ
#multiple 89.98% <ø> (ø) ⬆️
#single 41.8% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update af5e8ec...5ded993. Read the comment docs.

@codecov
Copy link

codecov bot commented Feb 20, 2018

Codecov Report

Merging #19780 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #19780   +/-   ##
=======================================
  Coverage   91.61%   91.61%           
=======================================
  Files         150      150           
  Lines       48887    48887           
=======================================
  Hits        44786    44786           
  Misses       4101     4101
Flag Coverage Δ
#multiple 89.98% <ø> (ø) ⬆️
#single 41.8% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update af5e8ec...e71a854. Read the comment docs.

Copy link
Member

@jorisvandenbossche jorisvandenbossche left a comment

Choose a reason for hiding this comment

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

The actual change looks good, thanks! Added a few comments.

But to clarify @jreback comment: you only need to include those changes in api.rst itself, not all the other files. So you will need to remove them again from your branch (those files are generated by the doc building process, so don't need to be in the git repo)


Miscellaneous
~~~~~~~~~~~~~

Copy link
Member

Choose a reason for hiding this comment

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

Can you add a small sentence saying that those functions are contained in the pandas.plotting module?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll add this too.

.. currentmodule:: pandas.plotting

Plotting
--------
Copy link
Member

Choose a reason for hiding this comment

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

Can you move this section more to the bottom? There is already a small section on plotting that includes (de)register_matplotlib_converters, so you can merge both

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jorisvandenbossche Sure thing! Thanks for the feedback. Would it matter if I just did this in a new branch? I'm having trouble crafting the right git command that will un-commit and unstage my changes. Or is it preferred I keep everything on this branch? Or should I just put it in master?

Copy link
Member

Choose a reason for hiding this comment

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

Normally you should be able to do git rm doc/source/savefig/* and commit those changes. No need to un-commit the previous one (we will squash all commits into one in the end anyway).

Copy link
Member

Choose a reason for hiding this comment

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

So if that works, we would prefer that you further push to this branch / PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Got it. I'll do that now.

@jorisvandenbossche jorisvandenbossche changed the title added plotting module to the api reference docs DOC: added plotting module to the api reference docs Feb 20, 2018
@jorisvandenbossche
Copy link
Member

Can you also remove the /doc/test.json file? (check the diff)

@mehemken
Copy link
Contributor Author

Ok I've made some changes

  • removed the images
  • merged the two plotting module sections

So this is all ready to go.

One thought though. I don't find it intuitive that the plotting module is nested under the style section. As a relatively new user this is confusing to me. Perhaps the plotting module warrants its own section? instead of:

Plotting
~~~~~~~~

Perhaps:

Plotting
--------

@mehemken
Copy link
Contributor Author

mehemken commented Feb 20, 2018

Ah yes, I'll remove that as well.

UPDATE: done

@jorisvandenbossche
Copy link
Member

Regarding the header level, you are certainly right (I suppose that's an oversight). You can make that change.

@mehemken
Copy link
Contributor Author

Ok thanks for the feedback Joris. This looks good to me but let me know if there's anything else I should do. I'm new to contributing to Pandas so if I'm leaving out any best practices or conventions I'd like to correct that.

@mehemken
Copy link
Contributor Author

@jreback I've removed all the extra files from this branch. Any other changes I need to make?

@jreback jreback added this to the 0.23.0 milestone Feb 22, 2018
@jreback jreback merged commit aa68c06 into pandas-dev:master Feb 22, 2018
@jreback
Copy link
Contributor

jreback commented Feb 22, 2018

thanks @mehemken

harisbal pushed a commit to harisbal/pandas that referenced this pull request Feb 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

API reference is missing the Plotting module
3 participants