Skip to content

pandas 3.x compat: replace _append with pd.concat; doc report ordering#41

Open
karthiktadepalli1 wants to merge 1 commit into
METR:mainfrom
karthiktadepalli1:fix-dvc-repro-errors
Open

pandas 3.x compat: replace _append with pd.concat; doc report ordering#41
karthiktadepalli1 wants to merge 1 commit into
METR:mainfrom
karthiktadepalli1:fix-dvc-repro-errors

Conversation

@karthiktadepalli1
Copy link
Copy Markdown

Summary

  • Replace pd.Series._append with pd.concat in agent_regression. The private _append was removed in pandas 3.0; the locked pandas==2.3.3 in uv.lock still carries it as a private fallback, so the pipeline isn't broken under uv sync today, but this prevents breakage on a future pandas bump.
  • Add a README note that time-horizon-1-0 must be reproduced before time-horizon-1-1, since the latter still depends on the former's wrangled outputs (bootstrap/headline.csv, logistic_fits/headline.csv, metrics/benchmark_results.yaml) — see reports/time-horizon-1-1/dvc.yaml and figs.yaml.

Test plan

  • uv sync succeeds; dvc repro completes for both reports
  • In a separate venv with pandas 3.x, dvc repro for time-horizon-1-1 no longer raises AttributeError: 'Series' object has no attribute '_append'

🤖 Generated with Claude Code

Replace pd.Series._append with pd.concat in agent_regression: the
private _append was removed in pandas 3.0 (uv.lock currently pins
2.3.3, where it still exists, so the locked pipeline isn't broken).

Also add a README note that time-horizon-1-0 must be reproduced before
time-horizon-1-1, since the latter consumes the former's wrangled
outputs (bootstrap CSVs, logistic fits, benchmark metrics).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant