Replies: 1 comment
-
|
There are lots of places in the package that does this, for example, And not directly related, there are also other parameter names that are not great. For example |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
While working on annotations in
slicing.py, I came across a method for setting values on a sparse backend that seems to be written to replace data at a single coordinate with a scalar:chainladder-python/chainladder/core/slice.py
Lines 151 to 168 in 11f6263
In this case,
valuewould make more grammatical sense. But I looked further and there's some evidence that in generalvaluemight align more closely with the Python data model and what the Pydata libraries do. For example, in this file, which contains the source code for DataFrame indexing:https://github.com/pandas-dev/pandas/blob/72f2fea91530b5abb3cf2100cb22d84e504695c0/pandas/core/indexing.py#L2577-L2593
Also the various instances of
__setitem__in that file use the keyword argumentvalue, compared to chainladder which usesvaluesfor the corresponding functions. But the Pandas library is huge, so I have yet to know whether this is consistent, or applies to cases with more than one data point, like setting ndarrays. Since this is kind of a sidequest that arose out of typing work, I left it as a question here, but if confirmed, we should get the change done before 1.0 since it's an API change.Beta Was this translation helpful? Give feedback.
All reactions