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: Fixed implicit imports for whatsnew (v >= version 20.0) #24199

Merged
merged 2 commits into from
Dec 11, 2018

Conversation

saurav2608
Copy link

@saurav2608 saurav2608 commented Dec 10, 2018

@saurav2608 saurav2608 changed the title DOC: Fixed implicit imports for whatsnew (v >= version 20.0 DOC: Fixed implicit imports for whatsnew (v >= version 20.0) Dec 10, 2018
@codecov
Copy link

codecov bot commented Dec 10, 2018

Codecov Report

Merging #24199 into master will decrease coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #24199      +/-   ##
==========================================
- Coverage   92.21%   92.21%   -0.01%     
==========================================
  Files         162      162              
  Lines       51723    51723              
==========================================
- Hits        47695    47694       -1     
- Misses       4028     4029       +1
Flag Coverage Δ
#multiple 90.61% <ø> (ø) ⬆️
#single 43.03% <ø> (-0.01%) ⬇️
Impacted Files Coverage Δ
pandas/io/json/json.py 92.61% <0%> (-0.48%) ⬇️
pandas/util/testing.py 87.51% <0%> (+0.09%) ⬆️

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 77278ba...bdf5ac9. Read the comment docs.

@codecov
Copy link

codecov bot commented Dec 10, 2018

Codecov Report

Merging #24199 into master will decrease coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #24199      +/-   ##
==========================================
- Coverage   92.21%   92.21%   -0.01%     
==========================================
  Files         162      162              
  Lines       51723    51723              
==========================================
- Hits        47695    47694       -1     
- Misses       4028     4029       +1
Flag Coverage Δ
#multiple 90.61% <ø> (ø) ⬆️
#single 43.03% <ø> (-0.01%) ⬇️
Impacted Files Coverage Δ
pandas/io/json/json.py 92.61% <0%> (-0.48%) ⬇️
pandas/util/testing.py 87.51% <0%> (+0.09%) ⬆️

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 77278ba...a2316e0. Read the comment docs.

Copy link
Member

@datapythonista datapythonista left a comment

Choose a reason for hiding this comment

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

Thanks @saurav2608

Can we remove these files from the exclude in setup.cfg?

Do you mean in the PR title >=0.23.0

DOC: import datetime

Co-Authored-By: saurav2608 <sauravchakravorty@gmail.com>
@saurav2608
Copy link
Author

saurav2608 commented Dec 10, 2018

Can we remove these files from the exclude in setup.cfg?

Not yet, These changes only fix the implicit import errors.

Do you mean in the PR title >=0.23.0

I have fixed (if required) all the implicit import from pandas import * for version >= 20.0. I have removed the import block for all these files. flake8 errors still exist and I have opened individual issues for each of them.

@datapythonista
Copy link
Member

In this PR I only see files >=0.23 changed, that's why I find the title misleading. Do you mean that in 0.20 to 0.22 we don't have the import *.

Do you think it's worth to fix the import * separate from the rest? Happy to merge this PR, but for the rest, for me it makes things simpler to fix all the problems in a single file at once, remove it from the exclusion list, and besides in the issue, keep track in setup.cfg of what is correct, and what needs to be fixed.

@saurav2608
Copy link
Author

In this PR I only see files >=0.23 changed, that's why I find the title misleading. Do you mean that in 0.20 to 0.22 we don't have the import *.

Yes, that is correct. We don't have import *

Do you think it's worth to fix the import * separate from the rest? Happy to merge this PR, but for the rest, for me it makes things simpler to fix all the problems in a single file at once, remove it from the exclusion list, and besides in the issue, keep track in setup.cfg of what is correct, and what needs to be fixed.

Okay. But please merge this for now. For the rest I have not created issues yet. So, I can create an overall issues for all sorts of flake8 issues.

@jreback
Copy link
Contributor

jreback commented Dec 10, 2018

@datapythonista seeing gazillion warnings in the doc build: https://travis-ci.org/pandas-dev/pandas/jobs/465964000 I don't think this PR is actually causing them, but should fix this up before any more doc fixes.

@datapythonista
Copy link
Member

Thanks for the heads up. Seems unrelated to the fixes we've been merging, but I'm taking a look now, I'll try to see what's wrong and send a fix asap.

@datapythonista
Copy link
Member

@jreback the warnings come from #23601, where IntervalArrayFormatter was replaced by ExtensionArrayFormatter. But IntervalIndex is still using IntervalArrayFormatter.

Will check if fixing it is straight-forward, but I wouldn't let that stop merging the documentation PRs.

CC: @TomAugspurger

@TomAugspurger
Copy link
Contributor

@jreback the warnings come from #23601, where IntervalArrayFormatter was replaced by ExtensionArrayFormatter. But IntervalIndex is still using IntervalArrayFormatter.

That's fixed #24134

@datapythonista datapythonista self-assigned this Dec 11, 2018
@saurav2608
Copy link
Author

@datapythonista - are you waiting for #24134 to be merged before merging this?

@datapythonista
Copy link
Member

no, we like to double check what we merge, so I approved the changes, and whenever another maintainer have time to review this PR, they'll merge it if they're happy

@jreback jreback added this to the 0.24.0 milestone Dec 11, 2018
@jreback jreback merged commit f6c7f6b into pandas-dev:master Dec 11, 2018
@jreback
Copy link
Contributor

jreback commented Dec 11, 2018

thanks @saurav2608 FYI don't put 'closes' in the PR header in cases like this, use xref (as github will close the referenced issue)

@saurav2608 saurav2608 deleted the implicit_pd branch December 11, 2018 16:43
thoo added a commit to thoo/pandas that referenced this pull request Dec 12, 2018
* upstream/master:
  pct change bug issue 21200 (pandas-dev#21235)
  DOC: Fix summaries not ending with a period (pandas-dev#24190)
  DOC: Add back currentmodule to api.rst (pandas-dev#24232)
  DOC: Fixed implicit imports for whatsnew (v >= version 20.0) (pandas-dev#24199)
  remove enum import for PY2 compat, xref pandas-dev#22802 (pandas-dev#24170)
  CI: Simplify Azure Pipelines configuration files (pandas-dev#23111)
  REF/TST: Add more pytest idiom to indexing/multiindex/test_getitem.py (pandas-dev#24053)
Pingviinituutti pushed a commit to Pingviinituutti/pandas that referenced this pull request Feb 28, 2019
Pingviinituutti pushed a commit to Pingviinituutti/pandas that referenced this pull request Feb 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DOC: Fix flake8 issue in whatsnew files
5 participants