-
Notifications
You must be signed in to change notification settings - Fork 30
Scheduled weekly dependency update for week 14 #681
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
Closed
Closed
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
25d9aa1
Update sphinx-autodoc-typehints from 3.9.9 to 3.9.11
pyup-bot 047039a
Update setuptools from 80.9.0 to 82.0.1
pyup-bot 3847511
Update pytest from 8.3.5 to 9.0.2
pyup-bot 50cd8f2
Update pytest-env from 1.1.5 to 1.6.0
pyup-bot faec6ee
Update pytest-mock from 3.14.0 to 3.15.1
pyup-bot 2a2c221
Update fiftyone from 1.5.2 to 1.14.0
pyup-bot b53009d
Update datasets from 3.6.0 to 4.8.4
pyup-bot b984846
Update ultralytics from 8.3.237 to 8.4.33
pyup-bot 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 |
|---|---|---|
| @@ -1,9 +1,9 @@ | ||
| setuptools==80.9.0 | ||
| pytest==8.3.5 | ||
| setuptools==82.0.1 | ||
| pytest==9.0.2 | ||
| respx==0.22.0 | ||
| pytest-git==1.8.0 | ||
| pytest-env==1.1.5 | ||
| pytest-mock==3.14.0 | ||
| fiftyone==1.5.2 | ||
| datasets==3.6.0 | ||
| ultralytics==8.3.237 | ||
| pytest-env==1.6.0 | ||
| pytest-mock==3.15.1 | ||
| fiftyone==1.14.0 | ||
| datasets==4.8.4 | ||
| ultralytics==8.4.33 | ||
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
π§© Analysis chain
π Script executed:
Repository: DagsHub/client
Length of output: 1454
π Script executed:
Repository: DagsHub/client
Length of output: 1323
π Script executed:
Repository: DagsHub/client
Length of output: 1412
π Script executed:
Repository: DagsHub/client
Length of output: 2909
π Script executed:
Repository: DagsHub/client
Length of output: 1336
π Web query:
datasets library 3.6.0 to 4.8.4 breaking changes from_pandas APIπ‘ Result:
Between
datasets==3.6.0anddatasets==4.8.4,Dataset.from_pandas(...)itself did not meaningfully βbreakβ at the signature/parameter level (it still takesdf, features=None, info=None, split=None, preserve_index=None, and thepreserve_index=Nonebehavior aroundRangeIndexis the same). (raw.githubusercontent.com)The practical breaking changes youβre most likely to hit in code paths involving
from_pandasare:Column access return type changed in v4.0.0
In
datasets>=4.0.0,ds["col"]returns adatasets.Columnobject (lazy column) rather than the plain Python list many users relied on in3.x. If your code does list operations directly (e.g.,ds["col"].append(...),set(ds["col"]), JSON-serializing it, etc.), you may need to wrap it:list(ds["col"])(or otherwise materialize it) to get the old behavior. (github.com)Sequencefeature type was replaced (v4.0.0)If you pass
features=tofrom_pandasand you useddatasets.Sequence(...),datasets>=4.0.0replaced theSequencefeature type with the newListtype (andSequencebecomes a utility that producesList/dictdepending on subfeatures). This can break schemas you construct forfrom_pandas(..., features=...)(especially for nested/list columns) and anything that checks feature types explicitly. (github.com)IterableDataset variant gained an extra parameter (not breaking, but can surprise)
IterableDataset.from_pandas(...)in current docs includesnum_shards(default1). This is additive (so not a breaking change), but if you have wrappers that mirror/validate exact call signatures, it can matter. (huggingface.co)Citations:
Add test coverage for
as_hf_dataset()method before upgrading datasets.The
from_pandas()API signature is compatible between 3.6.0 and 4.8.4. However, datasets 4.x introduced breaking changes in column access behavior (columns returndatasets.Columnobjects instead of lists) and deprecatedSequencefeature types. While the currentas_hf_dataset()implementation doesn't directly use these features, it has no test coverage. Add a test to verify the method works correctly with 4.8.4 before this dependency update is deployed.