def METHOD_NAME(recorder, time_series_y, time_series_x, lags):
    result = econometrics_model.get_granger_causality(
        dependent_series=time_series_y, independent_series=time_series_x, lags=lags
    ).applymap(lambda x: round(float(x), 5) if x != "-" else x)
    recorder.capture(result)