Skip to content

CLN: Removing dead code in plotting and minor refactoring #26260

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 1 commit into from
May 2, 2019

Conversation

nrebena
Copy link
Contributor

@nrebena nrebena commented May 1, 2019

Follow up of #26185 .
This delete dead code from the MPLPlot._post_plot_logic_common and move the change from #26185 into LinePlot._post_plot_logic.

In detail, the change are only executed when the self.__need_to_set_index is True
The self._need_to_set_index variable is only set if you call _get_xticks.
The only place where _get_xticks is called is in LinePlot._make_plot.
Every children of LinePlot that redefine _make_plot also redefine _post_plot_logic.
Therefore I move the change in LinePlot._post_plot_logic

@codecov
Copy link

codecov bot commented May 1, 2019

Codecov Report

Merging #26260 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #26260      +/-   ##
==========================================
+ Coverage   91.97%   91.98%   +<.01%     
==========================================
  Files         175      175              
  Lines       52386    52379       -7     
==========================================
- Hits        48184    48179       -5     
+ Misses       4202     4200       -2
Flag Coverage Δ
#multiple 90.53% <100%> (ø) ⬆️
#single 40.72% <0%> (-0.15%) ⬇️
Impacted Files Coverage Δ
pandas/plotting/_core.py 83.91% <100%> (+0.27%) ⬆️
pandas/io/gbq.py 78.94% <0%> (-10.53%) ⬇️
pandas/core/frame.py 96.9% <0%> (-0.12%) ⬇️
pandas/util/testing.py 90.71% <0%> (+0.1%) ⬆️

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 80be9b5...4ed5348. Read the comment docs.

1 similar comment
@codecov
Copy link

codecov bot commented May 1, 2019

Codecov Report

Merging #26260 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #26260      +/-   ##
==========================================
+ Coverage   91.97%   91.98%   +<.01%     
==========================================
  Files         175      175              
  Lines       52386    52379       -7     
==========================================
- Hits        48184    48179       -5     
+ Misses       4202     4200       -2
Flag Coverage Δ
#multiple 90.53% <100%> (ø) ⬆️
#single 40.72% <0%> (-0.15%) ⬇️
Impacted Files Coverage Δ
pandas/plotting/_core.py 83.91% <100%> (+0.27%) ⬆️
pandas/io/gbq.py 78.94% <0%> (-10.53%) ⬇️
pandas/core/frame.py 96.9% <0%> (-0.12%) ⬇️
pandas/util/testing.py 90.71% <0%> (+0.1%) ⬆️

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 80be9b5...4ed5348. Read the comment docs.

@jreback jreback added this to the 0.25.0 milestone May 1, 2019
@jreback
Copy link
Contributor

jreback commented May 1, 2019

lgtm. @jorisvandenbossche or @TomAugspurger ?

@jreback jreback merged commit 1175933 into pandas-dev:master May 2, 2019
@jreback
Copy link
Contributor

jreback commented May 2, 2019

thanks @nrebena

@nrebena nrebena deleted the clean_post_plot_logic_common branch May 27, 2019 12:19
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.

3 participants