Skip to content

[ENH] Fill direction #879

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 11 commits into from
Aug 19, 2021
Merged

Conversation

samukweku
Copy link
Collaborator

@samukweku samukweku commented Aug 17, 2021

PR Description

Please describe the changes proposed in the pull request:

  • Uses kwargs
  • Limit parameter deprecated

This PR improves fill_direction.

PR Checklist

Please ensure that you have done the following:

  1. PR in from a fork off your branch. Do not PR from <your_username>:dev, but rather from <your_username>:<feature-branch_name>.
  1. If you're not on the contributors list, add yourself to AUTHORS.rst.
  1. Add a line to CHANGELOG.md under the latest version header (i.e. the one that is "on deck") describing the contribution.
    • Do use some discretion here; if there are multiple PRs that are related, keep them in a single line.

Automatic checks

There will be automatic checks run on the PR. These include:

  • Building a preview of the docs on Netlify
  • Automatically linting the code
  • Making sure the code is documented
  • Making sure that all tests are passed
  • Making sure that code coverage doesn't go down.

Relevant Reviewers

Please tag maintainers to review.

@samukweku samukweku self-assigned this Aug 17, 2021
@codecov
Copy link

codecov bot commented Aug 17, 2021

Codecov Report

Merging #879 (10b9289) into dev (5e2ccb3) will increase coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##              dev     #879      +/-   ##
==========================================
+ Coverage   94.89%   94.92%   +0.02%     
==========================================
  Files          19       19              
  Lines        2078     2090      +12     
==========================================
+ Hits         1972     1984      +12     
  Misses        106      106              

@nvamsikrishna05
Copy link
Collaborator

@samukweku Looks good.

Copy link
Member

@ericmjl ericmjl left a comment

Choose a reason for hiding this comment

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

Lots of awesome ideas in here, approving, @samukweku 😄.

@@ -2523,7 +2521,7 @@ def row_to_names(
df = df.drop(df.index[range(row_number)])

if reset_index:
df.reset_index(drop=["index"], inplace=True)
df = df.reset_index(drop=["index"])
Copy link
Member

Choose a reason for hiding this comment

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

🎉 I like this change!

@@ -37,6 +37,8 @@
from scipy.stats import mode

from .errors import JanitorError
from enum import Enum
from operator import methodcaller
Copy link
Member

Choose a reason for hiding this comment

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

Oh my, that is such Python trickery, @samukweku 😄 🤣

@ericmjl
Copy link
Member

ericmjl commented Aug 18, 2021

@nvamsikrishna05 would you like to do the honors? Please hit the big green button at your convenience!

@nvamsikrishna05 nvamsikrishna05 merged commit 631c812 into pyjanitor-devs:dev Aug 19, 2021
@samukweku samukweku deleted the fill_direction branch August 19, 2021 09:43
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.

3 participants