Skip to content

Commit

Permalink
Merge pull request #1488 from bug-or-feature/feature_1463_pandas_futu…
Browse files Browse the repository at this point in the history
…re_warnings

revert attempt to fix FutureWarning
  • Loading branch information
bug-or-feature authored Jan 16, 2025
2 parents 7c5c860 + bfb4af3 commit ffd3fd1
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions sysproduction/update_historical_prices.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,14 +482,13 @@ def write_merged_prices_for_contract(
diag_prices = diagPrices(data)
price_updater = updatePrices(data)

list_of_data = []
for frequency in list_of_frequencies:
prices = diag_prices.get_prices_at_frequency_for_contract_object(
list_of_data = [
diag_prices.get_prices_at_frequency_for_contract_object(
contract_object,
frequency=frequency,
)
if len(prices) > 0:
list_of_data.append(prices)
for frequency in list_of_frequencies
]

merged_prices = merge_data_with_different_freq(list_of_data)

Expand Down

0 comments on commit ffd3fd1

Please sign in to comment.