Open Issues Need Help
View All on GitHub Implement Log Returns Calculator Function about 1 month ago
AI Summary: Implement a Python function, `calculate_log_returns`, that computes the logarithmic returns of a given price series (list or NumPy array). The function must handle edge cases like empty input, single price, and zero/negative prices, return the correct data type, include comprehensive documentation and error handling, and achieve high unit test coverage (>90%).
Complexity:
3/5
enhancement good first issue