We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1e30053 + 42c5190 commit 7c5c860Copy full SHA for 7c5c860
systems/portfolio.py
@@ -727,16 +727,6 @@ def _add_zero_weights_to_instrument_weights_df(
727
instrument_list_to_add = (
728
self.allocate_zero_instrument_weights_to_these_instruments()
729
)
730
- # weight_index = instrument_weights.index
731
- # new_pd_as_dict = dict(
732
- # [
733
- # (instrument_code, pd.Series([0.0] * len(weight_index)))
734
- # for instrument_code in instrument_list_to_add
735
- # ]
736
- # )
737
- # new_pd = pd.DataFrame(new_pd_as_dict)
738
- #
739
- # padded_instrument_weights = pd.concat([instrument_weights, new_pd], axis=1)
740
741
padded_instrument_weights = copy(instrument_weights)
742
for zero_instr in instrument_list_to_add:
0 commit comments