Skip to content

Port #563 (numpy_vs_numba_vs_jax) and #470 (pandas_panel) - #120

Open
quantecon-services wants to merge 1 commit into
mainfrom
claude/port-563-470
Open

quantecon-services wants to merge 1 commit into
mainfrom
claude/port-563-470

Conversation

@quantecon-services

Copy link
Copy Markdown
Collaborator

What

Ports two English changes whose state files say they are in the French edition but whose code is not. Found in the translation audit of 2026-12-01 (silent-drift task list, P2).

Changes

numpy_vs_numba_vs_jax.md (QuantEcon/lecture-python-programming#563)

  • jax.jit no longer accepts device=; the input is pinned with x0_cpu = jax.device_put(0.1, cpu) instead, with a translated comment
  • device=cpu is removed from the qm_jax_fori and qm_jax_scan decorators, and the four timing cells pass x0_cpu
  • The bullet explaining the pinning now describes jax.device_put

pandas_panel.md (QuantEcon/lecture-python-programming#470)

  • future_stack=True is removed from four .stack() calls (the default since pandas 3.0), along with its "requis jusqu'à pandas>3.0" comments
  • The groupby sentence now says pandas no longer supports axis=1, rather than that it is deprecated

Checks

  • Code cells match English logic: 33 of 33 and 47 of 47 (comments stay translated)
  • No state-file change: both state files already record English commits that include #563 and #470

A French-speaking reviewer should check the two reworded sentences and the new comment.


Generated by Claude Code

Both state files record English commits that include these changes,
but the French code never got them.

numpy_vs_numba_vs_jax (#563): jax.jit no longer takes device=; pin the
input with jax.device_put(0.1, cpu) instead and pass x0_cpu to the
four timing calls. The bullet that explains the pinning follows.

pandas_panel (#470): drop future_stack=True from the four .stack()
calls (the default since pandas 3.0), and say groupby no longer
supports axis=1 rather than that it is deprecated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HvzxXkVSwin4bbMYyxt4B9
@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown

📖 Netlify Preview Ready!

Preview URL: https://pr-120--verdant-toffee-3261a8.netlify.app

Commit: 21b21d8

📚 Changed Lectures


Build Info

This branch has not been deployed

No deployments
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.

2 participants