-
Notifications
You must be signed in to change notification settings - Fork 93
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
Closes #1363: ak.Series with only values and more robust typechecking #1441
Closes #1363: ak.Series with only values and more robust typechecking #1441
Conversation
2d14d7f
to
fe9e583
Compare
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.
Overall looks good, one small thing in the tail method and then a recommendation
e003e66
to
95513a5
Compare
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.
Couple minor suggestions, looks good overall!
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.
Josh and Pierce touched on most things already. After discussing with @pierce314159 yesterday, I believe we can actually remove the ar_tuple
parameter, but allow for data
to handle a Tuple
and List
as well. This effectively will not change the api because it looks like most places ar_tuple is being used, it is being done positionally. We could then add an error using **kwargs
to detect if ar_tuple
is passed as a keyword. I think this eliminates some technical debt moving forward and removes the need for the deprecation warning. Alternatively, if we want to leave the deprecation warning, but still allow ar_tuple
to be usable for a release cycle, I think that would be fine as well. This would also remove the need to update a lot of the usage for the Series.__init__
to utilize the new parameter format.
2159b58
to
31d7c19
Compare
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.
few small things
…pechecking This PR (closes Bears-R-Us#1363): - Deprecates the `ar_tuple` parameter inside of the `__init__` method. - Adjusts the tests to use the other 2 parameters `(index, data)` when instantiating.
31d7c19
to
13abc83
Compare
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.
few things, mostly documentation
This PR (closes #1363):
ar_tuple
parameter inside of the__init__
method.(index, data)
when instantiating.