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

[new]: quantize_into_fixed_width_bins(value, min_value, max_value, nb_bins) #41

Closed
2 tasks done
unytics opened this issue Dec 8, 2022 · 1 comment
Closed
2 tasks done
Labels
new-bigfunction Suggest a New BigFunction

Comments

@unytics
Copy link
Owner

unytics commented Dec 8, 2022

Check the idea has not already been suggested

Edit the title above with self-explanatory function name and argument names

  • The function name and the argument names I entered in the title above seems self explanatory to me.

BigFunction Description as it would appear in the documentation

Quantize value into a bin.

Examples of (arguments, expected output) as they would appear in the documentation

quantize_into_fixed_width_bins(-4, 0, 100, 10)
--> ]-∞, 0[

quantize_into_fixed_width_bins(5, 0, 100, 10)
--> [0, 10[

quantize_into_fixed_width_bins(97, 0, 100, 10)
--> [90, 100]

quantize_into_fixed_width_bins(123, 0, 100, 10)
--> [100, + ∞[

@unytics unytics added the new-bigfunction Suggest a New BigFunction label Dec 8, 2022
@unytics
Copy link
Owner Author

unytics commented Dec 8, 2022

you can look here a similar implementation:
https://github.com/unytics/bigfunctions/blob/main/bigfunctions/explore_column.yaml#L70

@unytics unytics closed this as completed Dec 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-bigfunction Suggest a New BigFunction
Projects
None yet
Development

No branches or pull requests

1 participant