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

Column-aware transformations #672

Open
5 tasks
Seddryck opened this issue Dec 30, 2021 · 0 comments
Open
5 tasks

Column-aware transformations #672

Seddryck opened this issue Dec 30, 2021 · 0 comments
Milestone

Comments

@Seddryck
Copy link
Owner

Some transformations are requiring that you know more than just the current value of a column. You also need to be aware of some values such as the min/max/avg/median of the column.

Such alterations of a column include:

  • normalize is comparing the current value to the minimum and the maximum value of this column. If the value is equal to the minimum then the normalization returns 0. When the value is equal to the maximum then the normalization returns 1. Any other value will be represented as (Value-Min)/(Max-Min). If max and min are equal then the result is 1.
  • rank returns the rank of each row. The rank of a row is one plus the number of ranks that come before the row in question. It provides the same numeric value for ties.
  • row-number returns the rank of each row. The rank of a row is one plus the number of ranks that come before the row in question. It provides distinct numeric value for ties.
  • dense-rank is identical to rank with no gaps in the ranking values after some ties.
  • ntile is distributing the rows in an ordered partition into a specified number of groups. The groups are numbered, starting at one. For each row, NTILE returns the number of the group to which the row belongs.
@Seddryck Seddryck added this to the v2.1 milestone Dec 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant