mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-14 16:26:55 +08:00
fix the float conversion bug
This commit is contained in:
@@ -671,7 +671,8 @@ class LocalExpressionProvider(ExpressionProvider):
|
|||||||
# Ensure that each column type is consistent
|
# Ensure that each column type is consistent
|
||||||
# FIXME: The stock data is currently float. If there is other types of data, this part needs to be re-implemented.
|
# FIXME: The stock data is currently float. If there is other types of data, this part needs to be re-implemented.
|
||||||
try:
|
try:
|
||||||
series = series.astype(float)
|
# TODO: the default storage and calculation type should be configurable
|
||||||
|
series = series.astype(np.float32)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
pass
|
pass
|
||||||
if not series.empty:
|
if not series.empty:
|
||||||
|
|||||||
Reference in New Issue
Block a user