Historical beta calculation via Python API

djp
djp Newcomer
edited 2:53AM in Eikon Data APIs

What would be the best way to replicate the historical beta calculation through the Python API (preferably via lseg-data)? As I understand, there is currently no example available in the Workspace Codebook library of such a historical beta calculation, as the API instead only allows for obtaining the latest available data points?

Specifically, I am looking for an efficient way of replicating the below Excel-based template file retrieving Company Historical Beta, provided to me by the support team.

image.png