The file original.py (in your working directory) exposes a single function
run(case) that:
Accepts a dict with keys "series_a" (list of float), "series_b" (list
of float, same length), and "windows" (list of int window sizes).
Builds two pd.Series objects from the lists.
For each window size w, computes a.rolling(w).corr(b).
Rounds results to 6 decimal places; converts NaN to None.
Returns a dict mapping str(w) to the list of correlation values.
What you need to build
Create /app/solution/modal_app.py that ports this workflow to Modal. The
verifier will import your module and call run_caseremote invocation (case) for several
test cases.
Required interface
Module-level app representing the Modal app.
Module-level Modal Function object named run_case.
run_caseremote invocation (case) must accept a dict shaped like
{"series_a": list[float], "series_b": list[float], "windows": list[int]}
and return the same dict that the original run function produces.
Notes
Your Modal image must include pandas and numpy.
Output keys are strings (e.g. "3", "5", "10").
Each value is a list where the first w-1 elements are None (insufficient
data for the window) and the remainder are plain Python float.
Use map to compute each window in parallel if desired.
Capability contract
Expose the workflow as a single Modal remote function: define run_case as an @app.function so the harness can invoke it with run_case.remote(case).