From bebd4fa7b347e2a57e67638242a6d3eed9a10710 Mon Sep 17 00:00:00 2001 From: Vishal Grover Date: Tue, 19 Nov 2024 09:05:56 +0000 Subject: [PATCH] List indexation is required to return a pandas.DataFrame instead of Series --- sysproduction/reporting/data/rolls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysproduction/reporting/data/rolls.py b/sysproduction/reporting/data/rolls.py index 40a6048009..259aac5b6d 100644 --- a/sysproduction/reporting/data/rolls.py +++ b/sysproduction/reporting/data/rolls.py @@ -458,7 +458,7 @@ def last_price_data_with_matched_contracts(df_of_col_and_col_to_use): ): row_to_copy = df_of_col_and_col_to_use[ ["Price_to_find", "Price_infer_from"] - ].iloc[data_row_idx] + ].iloc[[data_row_idx]] if matched_df_dict.empty: matched_df_dict = row_to_copy