Skip to content

Commit

Permalink
Merge branch 'develop' into feature_1463_pandas_future_warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
bug-or-feature committed Jan 29, 2025
2 parents f53723a + 003f694 commit d0eca0a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ dependencies = [
"PyPDF2>=2.5.0",
"scikit-learn>1.3.0",
"pytz==2023.3",
"pyarrow>=16,<20",
]

[project.optional-dependencies]
Expand Down
10 changes: 0 additions & 10 deletions systems/portfolio.py
Original file line number Diff line number Diff line change
Expand Up @@ -727,16 +727,6 @@ def _add_zero_weights_to_instrument_weights_df(
instrument_list_to_add = (
self.allocate_zero_instrument_weights_to_these_instruments()
)
# weight_index = instrument_weights.index
# new_pd_as_dict = dict(
# [
# (instrument_code, pd.Series([0.0] * len(weight_index)))
# for instrument_code in instrument_list_to_add
# ]
# )
# new_pd = pd.DataFrame(new_pd_as_dict)
#
# padded_instrument_weights = pd.concat([instrument_weights, new_pd], axis=1)

padded_instrument_weights = copy(instrument_weights)
for zero_instr in instrument_list_to_add:
Expand Down

0 comments on commit d0eca0a

Please sign in to comment.