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

unify dataframe definitions to fix auto-complete #576

Merged

Conversation

admackin
Copy link
Contributor

having two different dataframes defined under an if for some reason causing PyCharm to not offer auto-complete of
DataFrame methods/attributes. I'm not entirely sure why but some trial and error showed that this refactor seems to produce the correct behaviour. Note that I was sometimes able to get auto-complete working without this change, but it seemed to reliably work with the change added.

Before

Screen Shot 2021-07-23 at 10 53 30

After

Screen Shot 2021-07-23 at 10 54 02

having two different dataframes defined under an `if` is
for some reason causing PyCharm to not offer auto-complete of
DataFrame methods/attributes. I'm not entirely sure why but some trial and error showed that this refactor seems to produce the correct behaviour
@codecov
Copy link

codecov bot commented Jul 23, 2021

Codecov Report

Merging #576 (25f0efe) into master (f668c3d) will decrease coverage by 0.03%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #576      +/-   ##
==========================================
- Coverage   99.36%   99.32%   -0.04%     
==========================================
  Files          22       22              
  Lines        2663     2666       +3     
==========================================
+ Hits         2646     2648       +2     
- Misses         17       18       +1     
Impacted Files Coverage Δ
pandera/typing.py 98.59% <100.00%> (-1.41%) ⬇️

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 f668c3d...25f0efe. Read the comment docs.

@cosmicBboy
Copy link
Collaborator

thanks @admackin! I'm not a pycharm user myself, so this is a super helpful fix!

@cosmicBboy cosmicBboy merged commit 13cda2b into unionai-oss:master Jul 24, 2021
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

Successfully merging this pull request may close these issues.

2 participants