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

Implement groupby by multiple columns in Spark DataFrame API #501

Merged
merged 2 commits into from
Nov 3, 2023

Conversation

dvadym
Copy link
Collaborator

@dvadym dvadym commented Oct 31, 2023

DataFrame API allows to perform DP on DataFrames (now only Spark DataFrames are supported). In DataFrame API privacy_key, partition_key and values are specified by column names. Currently partition_key (aka group by key) can be specified only by 1 column. This PR implements possibility to have multiple columns as partition_key .

max_groups_contributed: int,
max_contributions_per_group: int,
public_keys: Optional[Iterable[Any]] = None,
column: Optional[str] = None # deprecated
Copy link
Contributor

Choose a reason for hiding this comment

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

When will we remove this deprecated parameter?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'd say in a ~month (to be sure that everybody who uses this parameter migrate)

Copy link
Collaborator Author

@dvadym dvadym left a comment

Choose a reason for hiding this comment

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

Thanks for review!

max_groups_contributed: int,
max_contributions_per_group: int,
public_keys: Optional[Iterable[Any]] = None,
column: Optional[str] = None # deprecated
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'd say in a ~month (to be sure that everybody who uses this parameter migrate)

@dvadym dvadym merged commit 5031a3b into OpenMined:main Nov 3, 2023
10 of 14 checks passed
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