Skip to content

Commit ffd3fd1

Browse files
Merge pull request #1488 from bug-or-feature/feature_1463_pandas_future_warnings
revert attempt to fix FutureWarning
2 parents 7c5c860 + bfb4af3 commit ffd3fd1

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

sysproduction/update_historical_prices.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -482,14 +482,13 @@ def write_merged_prices_for_contract(
482482
diag_prices = diagPrices(data)
483483
price_updater = updatePrices(data)
484484

485-
list_of_data = []
486-
for frequency in list_of_frequencies:
487-
prices = diag_prices.get_prices_at_frequency_for_contract_object(
485+
list_of_data = [
486+
diag_prices.get_prices_at_frequency_for_contract_object(
488487
contract_object,
489488
frequency=frequency,
490489
)
491-
if len(prices) > 0:
492-
list_of_data.append(prices)
490+
for frequency in list_of_frequencies
491+
]
493492

494493
merged_prices = merge_data_with_different_freq(list_of_data)
495494

0 commit comments

Comments
 (0)