-
Notifications
You must be signed in to change notification settings - Fork 1k
Enable testing cudf.pandas unit tests for all minor versions of pandas
#16595
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
rapids-bot
merged 43 commits into
rapidsai:branch-24.10
from
galipremsagar:pandas_minor_ver_ci
Aug 23, 2024
Merged
Changes from 26 commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
9da733f
initial commit
galipremsagar bb8bc13
test
galipremsagar 1d0dae3
test
galipremsagar 3909c4d
Merge branch 'branch-24.10' into pandas_minor_ver_ci
galipremsagar f88780f
test
galipremsagar 3461362
Merge branch 'pandas_minor_ver_ci' of https://github.com/galipremsaga…
galipremsagar c3e7ee1
add py file
galipremsagar 2b361e0
disable
galipremsagar e5ef72a
pass pandas version
galipremsagar 9773185
add pandas version
galipremsagar 6f2b962
update
galipremsagar 84342cb
test
galipremsagar 704f75d
Merge branch 'branch-24.10' into pandas_minor_ver_ci
galipremsagar 4e9706f
style
galipremsagar 2aff0b4
Merge branch 'pandas_minor_ver_ci' of https://github.com/galipremsaga…
galipremsagar 77b546a
Update .github/workflows/pr.yaml
galipremsagar ba26ab2
Merge branch 'branch-24.10' into pandas_minor_ver_ci
galipremsagar 74528f9
Fix tests
galipremsagar 9c8c0c3
Merge branch 'branch-24.10' into pandas_minor_ver_ci
galipremsagar 95fde99
use filter
galipremsagar d515f62
Merge branch 'pandas_minor_ver_ci' of https://github.com/galipremsaga…
galipremsagar b6cbc5f
Address reviews
galipremsagar c5585f9
Merge branch 'branch-24.10' into pandas_minor_ver_ci
galipremsagar 191b7a2
fix yaml
galipremsagar f2d953f
Merge branch 'pandas_minor_ver_ci' of https://github.com/galipremsaga…
galipremsagar 16c5a8b
install packaging'
galipremsagar efce401
Apply suggestions from code review
galipremsagar b69c105
Update pr.yaml
galipremsagar 877392b
Update python/cudf/cudf_pandas_tests/test_profiler.py
galipremsagar 723e484
Update test_cudf_pandas.py
galipremsagar c3a985b
Merge branch 'branch-24.10' into pandas_minor_ver_ci
galipremsagar 98a97f6
improve
galipremsagar 782c938
update
galipremsagar f400708
update
galipremsagar b172637
Merge branch 'branch-24.10' into pandas_minor_ver_ci
galipremsagar 6165bf9
update path
galipremsagar a0161f7
Merge branch 'branch-24.10' into pandas_minor_ver_ci
galipremsagar 810fcca
fix path
galipremsagar 062494b
Merge branch 'pandas_minor_ver_ci' of https://github.com/galipremsaga…
galipremsagar 5fcf7c5
Apply suggestions from code review
galipremsagar f1b6840
Update ci/cudf_pandas_scripts/fetch_pandas_versions.py
galipremsagar 8c58b3f
simplify
galipremsagar 47de3f2
Merge branch 'branch-24.10' into pandas_minor_ver_ci
galipremsagar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| # Copyright (c) 2024, NVIDIA CORPORATION. | ||
|
|
||
| import requests | ||
| from packaging.version import Version | ||
| from packaging.specifiers import SpecifierSet | ||
| import argparse | ||
|
|
||
| def get_pandas_versions(pandas_range): | ||
| url = "https://pypi.org/pypi/pandas/json" | ||
| response = requests.get(url) | ||
| data = response.json() | ||
| versions = data['releases'].keys() | ||
|
|
||
| specifier = SpecifierSet(pandas_range) | ||
|
|
||
| minor_versions = list(set([version[:3] for version in versions if Version(version) in specifier])) | ||
|
|
||
| return minor_versions | ||
|
|
||
| if __name__ == "__main__": | ||
| parser = argparse.ArgumentParser(description="Filter pandas versions by prefix.") | ||
| parser.add_argument("pandas_range", type=str, help="The version prefix to filter by.") | ||
| args = parser.parse_args() | ||
|
|
||
| versions = get_pandas_versions(args.pandas_range) | ||
| print(versions) | ||
galipremsagar marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
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
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.