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

How to get the median? #158

Open
alextanski opened this issue May 2, 2019 · 5 comments
Open

How to get the median? #158

alextanski opened this issue May 2, 2019 · 5 comments

Comments

@alextanski
Copy link

I am able to query the following stats: cube_mean, cube_stddev, cube_min, cube_max but cube_median does not work so I guess it is indicated by a different cube_-suffix. Any chance you guys know how to get it? Cannot find anything in here https://docs.crunch.io/feature-guide/feature-analyzing.html?highlight=cube_count#multidimensional-analysis.

@malecki
Copy link
Contributor

malecki commented May 3, 2019

cube_quantile(probability=0.5) (or a list of probs) should do it. Thanks for the nudge on the docs!

@malecki malecki closed this as completed May 3, 2019
@alextanski
Copy link
Author

Thanks! Just had a look at that. How do I need to structure my query for this?

Literally as:

{'function': 'cube_quantile(probability=0.5)'} (that fails for me)

or in form of

{"function": "cube_quantile", "args": [{'probability': 0.5}]} (that is probably not correctly composed...)?

@jamesrkg
Copy link

@malecki are you able to help clarify the correct way to send a request for cube_quantile(probability=0.5)?

@alextanski alextanski reopened this May 17, 2019
@alextanski
Copy link
Author

alextanski commented May 17, 2019

Reopened for visibility.

@alextanski
Copy link
Author

bumping this.

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

No branches or pull requests

3 participants