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
[ENH] Add also
#735
[ENH] Add also
#735
Conversation
Locally, everything passed except the tests with Spark. Also, when I build the docs there is are a ton of changes. Do you want the new files in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very thoughtful setup on the tests, @sauln! Thanks for the effort put in 😄. I'm only requesting some changes regarding docstrings.
The spark
tests might fail locally, but that shouldn't worry you. As long as they don't fail on the CI, which is the ultimate arbiter of whether the tests passed or not, that's cool with me.
Speaking of the CI, it was flake8
that was failing. Some of my suggestions below should help.
Other than that, it's just adding docstrings to the tests. I noticed I had trouble deciphering some tests that others had submitted, so I've started asking for docstrings on tests. (Hynek Schwalak has a great blog post on this.) Please modify my suggestions if they're phrased incorrectly!
@sauln I just realized I forgot to respond to one of your questions:
No need to worry about these files, as they are built automatically on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything else looks great. Thanks @sauln!
Awesome! Thank you @ericmjl for the thorough feedback and interest in this new feature :D I'm excited to make use of it in my own day-to-day. |
…into saul/731/add-also
Alright, it looked like I was using some features of @ericmjl it looks like |
Codecov Report
@@ Coverage Diff @@
## dev #735 +/- ##
=======================================
Coverage 93.53% 93.53%
=======================================
Files 17 17
Lines 634 634
=======================================
Hits 593 593
Misses 41 41 |
@sauln hmm, I thought that the tuple unpacking inside the tests would be fine. Is there a way to rework those lines such that the bug risk is removed? If not, don't fret it, just add the |
@sauln thanks for the changes! I’m going to invite review from at least one more core dev before we merge (or wait 2 days, whichever is earlier). This prevents the situation where only one person, i.e. myself, knows what’s going on in the codebase. |
Sweet, thank you! |
PR Description
Please describe the changes proposed in the pull request:
also
method as discussed in Add analso
method akin to Kotlinsalso
#731also
also
This PR resolves #731.
PR Checklist
Please ensure that you have done the following:
<your_username>
:dev
, but rather from<your_username>
:<feature-branch_name>
.AUTHORS.rst
.CHANGELOG.rst
under the latest version header (i.e. the one that is "on deck") describing the contribution.Quick Check
To do a very quick check that everything is correct, follow these steps below:
make check
from pyjanitor's top-level directory. This will automatically run:Once done, please check off the check-box above.
If
make check
does not work for you, you can execute the commands listed in the Makefile individually.Code Changes
If you are adding code changes, please ensure the following:
$ pytest .
) locally on your machine.Documentation Changes
If you are adding documentation changes, please ensure the following:
Relevant Reviewers
Please tag maintainers to review.