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

nunique() #465

Merged
merged 1 commit into from
Dec 6, 2023
Merged

nunique() #465

merged 1 commit into from
Dec 6, 2023

Conversation

crusaderky
Copy link
Collaborator

No description provided.

@crusaderky crusaderky force-pushed the nunique branch 7 times, most recently from 808ca28 to c35581e Compare December 6, 2023 10:23
Comment on lines +1189 to +1219
if isinstance(uniqs, Index):
uniqs = uniqs.to_series()
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@crusaderky crusaderky marked this pull request as ready for review December 6, 2023 10:25
[
col.nunique(dropna=dropna).to_series(col.name)
# for col in self # TODO not implemented
for col in (self.iloc[:, i] for i in range(self.shape[1]))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you write this as

self.iloc[:, I].(dropna=dropna).to_series(col.name) for i in range(len(self.columns))

?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Could you merge #480?

Copy link
Collaborator

Choose a reason for hiding this comment

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

done

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

@phofl phofl merged commit 51c7332 into dask:main Dec 6, 2023
7 checks passed
@phofl
Copy link
Collaborator

phofl commented Dec 6, 2023

thx

@crusaderky crusaderky deleted the nunique branch December 6, 2023 14:38
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