Skip to content

Commit

Permalink
fix future warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Carver committed Nov 21, 2023
1 parent 70ec9a5 commit f6b2e1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sysdata/production/historic_contract_positions.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def get_current_position_for_contract_object(
if len(position_series) == 0:
return 0.0

return position_series[-1]
return position_series.iloc[-1]

def update_position_for_contract_object(
self,
Expand Down

0 comments on commit f6b2e1b

Please sign in to comment.