Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jrrmcalcio
Copy link
Contributor

Single value columns drop the excluded columns anyway, this prevent the process to remove the column even if they are single value and they are on the excluded columns.

Single value columns drop the excluded columns anyway, this prevent the process to remove the column even if they are single value and they are on the excluded columns.
@sourcery-ai
Copy link
Contributor

sourcery-ai bot commented Sep 13, 2022

Sourcery Code Quality Report

❌  Merging this PR will decrease code quality in the affected files by 0.17%.

Quality metrics Before After Change
Complexity 5.65 ⭐ 5.63 ⭐ -0.02 👍
Method Length 174.67 😞 175.78 😞 1.11 👎
Working memory 14.92 😞 14.93 😞 0.01 👎
Quality 49.26% 😞 49.09% 😞 -0.17% 👎
Other metrics Before After Change
Lines 535 536 1
Changed files Quality Before Quality After Quality Change
src/klib/clean.py 49.26% 😞 49.09% 😞 -0.17% 👎

Here are some functions in these files that still need a tune-up:

File Function Complexity Length Working Memory Quality Recommendation
src/klib/clean.py clean_column_names 10 🙂 456 ⛔ 32 ⛔ 25.02% 😞 Try splitting into smaller methods. Extract out complex expressions
src/klib/clean.py pool_duplicate_subsets 8 ⭐ 267 ⛔ 12 😞 42.99% 😞 Try splitting into smaller methods. Extract out complex expressions
src/klib/clean.py mv_col_handling 7 ⭐ 225 ⛔ 14 😞 43.18% 😞 Try splitting into smaller methods. Extract out complex expressions
src/klib/clean.py data_cleaning 3 ⭐ 182 😞 17 ⛔ 46.88% 😞 Try splitting into smaller methods. Extract out complex expressions
src/klib/clean.py convert_datatypes 5 ⭐ 127 😞 9 🙂 62.62% 🙂 Try splitting into smaller methods

Legend and Explanation

The emojis denote the absolute quality of the code:

  • ⭐ excellent
  • 🙂 good
  • 😞 poor
  • ⛔ very poor

The 👍 and 👎 indicate whether the quality has improved or gotten worse with this pull request.


Please see our documentation here for details on how these metrics are calculated.

We are actively working on this report - lots more documentation and extra metrics to come!

Help us improve this quality report!

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@akanz1 akanz1 self-requested a review September 13, 2022 08:00
@akanz1 akanz1 added the bug Something isn't working label Sep 13, 2022
@akanz1
Copy link
Owner

akanz1 commented Sep 13, 2022

Good point, thank you for your contribution @jrrmcalcio!

If you like you can add a small test checking that single_val_cols are kept now if they are in the exclusions, otherwise i'll do that likely later this week when i release a new version.

@akanz1 akanz1 merged commit ea24fa9 into akanz1:main Sep 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants