Skip to content

Commit

Permalink
List indexation is required to return a pandas.DataFrame instead of S…
Browse files Browse the repository at this point in the history
…eries
  • Loading branch information
Vishal Grover committed Nov 19, 2024
1 parent 56166f0 commit bebd4fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sysproduction/reporting/data/rolls.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bebd4fa

Please sign in to comment.