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
Closed
Wrap pd.DataFrame index list literals with pd.Index() in core_stats+ax+data_ai#5032itamaro wants to merge 1 commit intofacebook:mainfrom
itamaro wants to merge 1 commit intofacebook:mainfrom
Conversation
…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
Codecov Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
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.
Summary:
Python 3.14 pandas type stubs require explicit
pd.Index()for theindexparameter of
pd.DataFrame.__init__. Wrap list literals withpd.Index().Applied via:
buck run fbcode//python/upgrade/codemods:cli -- pandas-dataframe-indexBackwards compatible —
pd.Indexhas been available since early pandas versions.Differential Revision: D96619276