Skip to content
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

Bugfix partitions Load from Hub #380

Merged
merged 2 commits into from
Aug 23, 2023
Merged

Conversation

PhilippeMoussalli
Copy link
Contributor

A fix for loading the dataset when n_rows_to_load is specified. An offset of 1 was missing which caused an issue when there was only 1 partition (npartitions from the enumerate started from 0 and an attempt to call df.head() with 0 partitions was made)

@PhilippeMoussalli PhilippeMoussalli changed the title Bugfix partitions Bugfix partitions Load from Hub Aug 23, 2023
Copy link
Member

@RobbeSneyders RobbeSneyders left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @PhilippeMoussalli

FYI, you could have used enumerate(dask_df.partitions, start=1) as well 🙂

@PhilippeMoussalli
Copy link
Contributor Author

Thanks @PhilippeMoussalli

FYI, you could have used enumerate(dask_df.partitions, start=1) as well 🙂

Oh that's nicer indeed, i'll add it

@PhilippeMoussalli PhilippeMoussalli merged commit 50f3a97 into main Aug 23, 2023
4 checks passed
@PhilippeMoussalli PhilippeMoussalli deleted the fix-load-from-hub-rows branch August 23, 2023 09:48
Hakimovich99 pushed a commit that referenced this pull request Oct 16, 2023
A fix for loading the dataset when `n_rows_to_load` is specified. An
offset of 1 was missing which caused an issue when there was only 1
partition (npartitions from the enumerate started from 0 and an attempt
to call `df.head()` with 0 partitions was made)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants