feat: initialize PKU-DFIIC data cleaning project#124
Open
QianbinDou wants to merge 1 commit into
Open
Conversation
Repurpose template repo as PKU Digital Finance Inclusion Index cleaning project: - Add Python exploration script (01_explore.py): reads 4 Excel sheets, generates province/city/county/regionalism .dta files with full diagnostic output - Add Stata cleaning scripts (02-04_clean_*.do): validation, labeling, xtset, and save for province (403 obs), city (4,369 obs), and county (26,090 obs) - Add cleaned output files: PKU_DFIIC_province/city/county.dta - Fix 3 Stata syntax issues found during first run: * assert does not accept message string arguments * r(unique_value) overwritten by duplicates list; save to local first * missing values treated as +inf by Stata; add !missing() to range checks - Update CLAUDE.md and README.md for new project context - Remove Beamer/LaTeX/R template scaffolding (Slides, Preambles, scripts, templates, etc.) - Update .gitignore: exclude macOS resource forks (._*), data_temp/, data_logs/ Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
Repurpose template repo as PKU Digital Finance Inclusion Index cleaning project:
Summary
Type
fix/...)feat/...)docs/...)chore/...)Test plan
./scripts/validate-setup.shexits 0python3 scripts/quality_score.py <changed-files>≥ 80/deep-auditfinds no new inconsistenciesREADME.mdandguide/workflow-guide.qmdif user-facingCLAUDE.md,README.md,docs/index.html, and the guideGenerality (for new skills/agents/rules)
Notes for reviewer