mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-06 05:14:38 +08:00
6b9476d346
When the prev_close is 0 or does not exist, the resulting ration was either +inf or nan, respectively. Create a mask on the non-zero effective dates, where effective date is only written when the prev close is sufficient for a valid ratio; and use that mask to filter out the bad rows. Also, use prev close as the effective date.