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

allowing plural 'name' arguments to _get_frames #735

Merged
merged 6 commits into from Jan 1, 2020

Conversation

JunhwanK
Copy link
Contributor

Pull Request Checklist

Thank you for taking the time to improve Arrow! Before submitting your pull request, please check all appropriate boxes:

  • 🧪 Added tests for changed code.
  • 🛠️ All tests pass when run locally (run tox or make test to find out!).
  • 📚 Updated documentation for changed code.
  • ⏩ Code is up-to-date with the master branch.

If you have any questions about your code changes or any of the points above, please submit your questions along with the pull request and we will try our best to help!

Description of Changes

This change allows _get_frames to prase plural forms of the 'frame' argument (e.g. "day" and "days").
This change reduces confusion in users by providing them with more consistent function interfaces that accept both singular and plural 'frames' arguments, instead of the current interface that accepts "weeks" and "quarters" but not "days" or "hours".

Closes: #298

@codecov-io
Copy link

codecov-io commented Dec 11, 2019

Codecov Report

Merging #735 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #735   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           9      9           
  Lines        1667   1669    +2     
  Branches      281    282    +1     
=====================================
+ Hits         1667   1669    +2
Impacted Files Coverage Δ
arrow/arrow.py 100% <100%> (ø) ⬆️

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 b1b37ce...30e5597. Read the comment docs.

@JunhwanK JunhwanK changed the title allowing plural 'frame' arguments to _get_frames allowing plural 'name' arguments to _get_frames Dec 11, 2019
Copy link
Collaborator

@systemcatch systemcatch left a comment

Choose a reason for hiding this comment

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

Hey @JunhwanK sorry this took so long to get looked at, I'm happy with your code. @jadchaar any thoughts here?

Copy link
Member

@jadchaar jadchaar left a comment

Choose a reason for hiding this comment

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

LGTM

@jadchaar jadchaar merged commit b12f4a6 into arrow-py:master Jan 1, 2020
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.

Having issue using range to iterate through dates
4 participants