Skip to content

Wrap pd.DataFrame index list literals with pd.Index() in core_stats+ax+data_ai#5032

Closed
itamaro wants to merge 1 commit intofacebook:mainfrom
itamaro:export-D96619276
Closed

Wrap pd.DataFrame index list literals with pd.Index() in core_stats+ax+data_ai#5032
itamaro wants to merge 1 commit intofacebook:mainfrom
itamaro:export-D96619276

Conversation

@itamaro
Copy link
Copy Markdown
Contributor

@itamaro itamaro commented Mar 15, 2026

Summary:
Python 3.14 pandas type stubs require explicit pd.Index() for the index
parameter of pd.DataFrame.__init__. Wrap list literals with pd.Index().

Applied via: buck run fbcode//python/upgrade/codemods:cli -- pandas-dataframe-index

Backwards compatible — pd.Index has been available since early pandas versions.

Differential Revision: D96619276

…x+data_ai

Summary:
Python 3.14 pandas type stubs require explicit `pd.Index()` for the `index`
parameter of `pd.DataFrame.__init__`. Wrap list literals with `pd.Index()`.

Applied via: `buck run fbcode//python/upgrade/codemods:cli -- pandas-dataframe-index`

Backwards compatible — `pd.Index` has been available since early pandas versions.

Differential Revision: D96619276
@meta-cla meta-cla Bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Mar 15, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented Mar 15, 2026

@itamaro has exported this pull request. If you are a Meta employee, you can view the originating Diff in D96619276.

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Mar 15, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.84%. Comparing base (f3fd499) to head (740d1bc).
⚠️ Report is 123 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5032      +/-   ##
==========================================
- Coverage   96.84%   96.84%   -0.01%     
==========================================
  Files         605      605              
  Lines       65292    65292              
==========================================
- Hits        63233    63230       -3     
- Misses       2059     2062       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@saitcakmak saitcakmak closed this Apr 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants