[action-translation] resync: pandas_panel.md#144
Merged
Conversation
✅ Deploy Preview for astonishing-narwhal-a8fc64 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
Pull request overview
This PR forward-resyncs the Chinese translation of lectures/pandas_panel.md to match the upstream source lecture, and records the resync state metadata for the translation toolchain.
Changes:
- Updated the lecture content and code cells (e.g., data source URLs, pandas stacking calls, and groupby examples) to align with the latest upstream source.
- Added translation front-matter (
translation.title+translation.headings) for structured heading mapping. - Added
.translate/state/pandas_panel.md.ymlto record the synced source SHA and resync metadata.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| lectures/pandas_panel.md | Resynced full lecture content; includes updated metadata, URLs, and pandas examples. |
| .translate/state/pandas_panel.md.yml | Adds resync state (source SHA, timestamp, model, mode, section count). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
271
to
+273
| for country in replace: | ||
| merged['Continent'] = merged['Continent'].replace( | ||
| {country:'America'}) | ||
| merged.Continent = merged.Continent.replace(to_replace=country, | ||
| value='America') |
| @@ -326,10 +335,6 @@ map_url='https://raw.githubusercontent.com/QuantEcon/lecture-python.zh-cn/refs/h | |||
| country_map = pd.read_csv(map_url).set_index('English')['Chinese'] | |||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Forward Resync: pandas_panel.md
Source: QuantEcon/lecture-python.myst — lectures/pandas_panel.md
Source commit:
6f473feThis PR resyncs the translation to match the current source document.
Reason: Target adds substantive content not in source: an extra code cell showing 'merged.T.groupby(level='Continent').mean()' output, Chinese country/continent/age-label mapping dictionaries and translation logic (country_map, continent_map, age_labels) with associated plotting code, font configuration imports, and additional legend/label customization in plots (e.g., legend titles, translated sex/age categories in boxplot). These are beyond simple i18n font/locale adjustments and constitute added explanatory/code content. Also URLs differ (source uses different repo paths than target), which is a content change, but the additions take priority for verdict.
Changes
Whole-file resync applied. The entire document was resynced in a single pass.
Created by action-translation forward resync