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

Rejected #333

Merged
merged 12 commits into from
Jan 14, 2020
Merged

Rejected #333

merged 12 commits into from
Jan 14, 2020

Conversation

sbrugman
Copy link
Collaborator

Combines PR #324 and PR #326. Solutions for issue #281 and #315.


Handling for constant (values, length) variables

  • Constant length warning / message: Inform the user for categorials with constant length
  • Variables with constant values are "ignored" (strikethrough and grey)

Configuration for rejected variables and warnings

  • Rejected variables can be disabled (no longer grey or strikethrough)
  • Warnings in the overview are automatically collapsed if over 20 item (configurable), can also be disabled completely by setting the limit to 0.

Reintroduce ProfileReport.get_rejected_variables()

  • Introduce REJECTED MessageType

sbrugman and others added 9 commits January 14, 2020 01:17
- Constant length warning / message: Inform the user for categorials with constant length
- Variables with constant values are "ignored" (strikethrough and grey)
- Rejected variables can be disabled (no longer grey or strikethrough)
- Warnings in the overview are automatically collapsed if over 20 item (configurable), can also be disabled completely by setting the limit to 0.

(#281)
@codecov
Copy link

codecov bot commented Jan 14, 2020

Codecov Report

Merging #333 into master will increase coverage by 0.06%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #333      +/-   ##
==========================================
+ Coverage   87.41%   87.48%   +0.06%     
==========================================
  Files          84       86       +2     
  Lines        1851     2021     +170     
==========================================
+ Hits         1618     1768     +150     
- Misses        233      253      +20
Flag Coverage Δ
#examples 0% <ø> (ø) ⬆️
#issue 80.59% <100%> (+0.12%) ⬆️
#unit 85.22% <95.83%> (+0.54%) ⬆️
Impacted Files Coverage Δ
...ndas_profiling/report/presentation/core/dataset.py 85.71% <ø> (ø) ⬆️
src/pandas_profiling/report/structure/report.py 96.07% <100%> (+0.07%) ⬆️
src/pandas_profiling/__init__.py 74.86% <100%> (+2.06%) ⬆️
src/pandas_profiling/model/messages.py 98.18% <100%> (+0.12%) ⬆️
src/pandas_profiling/model/describe.py 97.17% <100%> (+0.13%) ⬆️
tests/unit/test_modular.py 100% <0%> (ø) ⬆️
examples/titanic/titanic.py 0% <0%> (ø) ⬆️
examples/meteorites/meteorites.py 0% <0%> (ø) ⬆️
tests/unit/test_url.py 100% <0%> (ø) ⬆️
tests/unit/test_example.py 100% <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 5114df7...ae5166b. Read the comment docs.

sbrugman and others added 3 commits January 14, 2020 14:04
- Warning types were not properly equality checked
- Warning templates are now optional (jinja ignore missing)
- Renumber the MessageType enum for compatibility with `UNIFORM`
@sbrugman sbrugman merged commit 609c029 into master Jan 14, 2020
@sbrugman sbrugman deleted the rejected branch January 14, 2020 17:22
chanedwin pushed a commit to chanedwin/pandas-profiling that referenced this pull request Oct 11, 2020
Rejected and constant variable support
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.

1 participant