Open MaxGhenis opened 3 years ago
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.
MicroDataFrame.set_weights
already works passing in a string soset_weight_col
seems redundant: