Skip to content

BUG: Ensuring that _get_standard_colors returns num_colors (GH #20585) #24504

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

Merged
merged 10 commits into from
Jan 2, 2019
Merged

BUG: Ensuring that _get_standard_colors returns num_colors (GH #20585) #24504

merged 10 commits into from
Jan 2, 2019

Conversation

nokutu
Copy link
Contributor

@nokutu nokutu commented Dec 30, 2018

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.

looks good. can you also add the example from the OP (which was a groupby) and assert that the colors are all the same. pls add a whatsnew note (bug fixes in plotting) as well. ping on green.

@codecov
Copy link

codecov bot commented Dec 30, 2018

Codecov Report

Merging #24504 into master will decrease coverage by 49.25%.
The diff coverage is 0%.

Impacted file tree graph

@@             Coverage Diff             @@
##           master   #24504       +/-   ##
===========================================
- Coverage   92.31%   43.05%   -49.26%     
===========================================
  Files         166      166               
  Lines       52391    52392        +1     
===========================================
- Hits        48363    22557    -25806     
- Misses       4028    29835    +25807
Flag Coverage Δ
#multiple ?
#single 43.05% <0%> (ø) ⬆️
Impacted Files Coverage Δ
pandas/plotting/_style.py 23.4% <0%> (-54.02%) ⬇️
pandas/io/formats/latex.py 0% <0%> (-100%) ⬇️
pandas/core/categorical.py 0% <0%> (-100%) ⬇️
pandas/io/sas/sas_constants.py 0% <0%> (-100%) ⬇️
pandas/tseries/plotting.py 0% <0%> (-100%) ⬇️
pandas/tseries/converter.py 0% <0%> (-100%) ⬇️
pandas/io/formats/html.py 0% <0%> (-98.65%) ⬇️
pandas/core/groupby/categorical.py 0% <0%> (-95.46%) ⬇️
pandas/io/sas/sas7bdat.py 0% <0%> (-91.17%) ⬇️
pandas/io/sas/sas_xport.py 0% <0%> (-90.15%) ⬇️
... and 125 more

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 c4ac0d6...981cd7c. Read the comment docs.

@codecov
Copy link

codecov bot commented Dec 30, 2018

Codecov Report

Merging #24504 into master will decrease coverage by 0.01%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #24504      +/-   ##
==========================================
- Coverage   31.89%   31.87%   -0.02%     
==========================================
  Files         166      166              
  Lines       52434    52428       -6     
==========================================
- Hits        16722    16714       -8     
- Misses      35712    35714       +2
Flag Coverage Δ
#multiple 30.28% <0%> (-0.01%) ⬇️
#single 31.87% <0%> (-0.02%) ⬇️
Impacted Files Coverage Δ
pandas/plotting/_style.py 23.4% <0%> (-0.26%) ⬇️
pandas/plotting/_core.py 18.17% <0%> (ø) ⬆️
pandas/core/internals/blocks.py 38.09% <0%> (-0.4%) ⬇️
pandas/core/indexes/datetimes.py 36.95% <0%> (-0.39%) ⬇️
pandas/core/base.py 26.45% <0%> (-0.37%) ⬇️
pandas/core/indexes/timedeltas.py 42.57% <0%> (-0.29%) ⬇️
pandas/core/indexes/period.py 31.4% <0%> (-0.1%) ⬇️
pandas/io/pytables.py 19.52% <0%> (-0.01%) ⬇️
pandas/core/algorithms.py 31.7% <0%> (ø) ⬆️
pandas/core/generic.py 31.41% <0%> (ø) ⬆️
... and 9 more

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 a7d3648...5a1da48. Read the comment docs.

@nokutu
Copy link
Contributor Author

nokutu commented Dec 30, 2018

Why is only the azure pipeline failing? Is it because of something changed?

@jreback
Copy link
Contributor

jreback commented Dec 30, 2018

you need to click thru: https://dev.azure.com/pandas-dev/pandas/_build/results?buildId=6152

you have linting errors & the added test fails.

@nokutu
Copy link
Contributor Author

nokutu commented Dec 31, 2018

ping @jreback

@jreback
Copy link
Contributor

jreback commented Dec 31, 2018

FYI: we just merged #20727 which touches similar code. So for sure rebase on master and see if your patch still works.

@jreback
Copy link
Contributor

jreback commented Dec 31, 2018

cc @TomAugspurger

@nokutu nokutu changed the title Fixing #20585. Ensuring that _get_standard_colors returns num_colors BUG: Ensuring that _get_standard_colors returns num_colors (GH #20585) Jan 1, 2019
@nokutu
Copy link
Contributor Author

nokutu commented Jan 2, 2019

ping

@jreback jreback added this to the 0.24.0 milestone Jan 2, 2019
@jreback jreback merged commit 179822a into pandas-dev:master Jan 2, 2019
@jreback
Copy link
Contributor

jreback commented Jan 2, 2019

thanks @nokutu

@nokutu nokutu deleted the fix_get_standard_colors branch January 2, 2019 12:44
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.

Default behavior of plot.bar changed to plot a different color for each bar
2 participants