We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
MicroDataFrame.set_weights already works passing in a string so set_weight_col seems redundant:
MicroDataFrame.set_weights
set_weight_col
In [2]: d = mdf.MicroDataFrame({"x": [1, 2]}, weights=[3, 4]) In [3]: d.set_weights("x") In [4]: d.weights Out[4]: 0 1.0 1 2.0 Name: x, dtype: float64 In [5]: d.set_weights([6, 7]) In [6]: d.weights Out[6]: 0 6.0 1 7.0 dtype: float64
The text was updated successfully, but these errors were encountered:
Actually this doesn't work:
In [2]: d = mdf.MicroDataFrame({"x": [1, 2]}, weights=[3, 4]) In [3]: d.x.sum() Out[3]: 11.0 In [4]: d.set_weights("x") In [5]: d.x.sum() Out[5]: 11.0
Still seems better to fix this and make set_weights work with both a column name and values than to have two.
set_weights
Sorry, something went wrong.
No branches or pull requests
MicroDataFrame.set_weights
already works passing in a string soset_weight_col
seems redundant:The text was updated successfully, but these errors were encountered: