Skip to content

Commit

Permalink
fix update_value to return float32
Browse files Browse the repository at this point in the history
  • Loading branch information
cciechad committed Mar 22, 2024
1 parent 2faec67 commit 0800732
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AnalyzeLots.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def format_dollar(amount: float) -> str:

def update_value(symbols: pd.Series, quantities: pd.Series) -> pd.Series:
values: list[float] = [(get_price(symbol) * quantity) for symbol, quantity in zip(symbols, quantities)]
return pd.Series(values, dtype='float')
return pd.Series(values, dtype='float32')


@cache
Expand Down

0 comments on commit 0800732

Please sign in to comment.