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

Added implementation and tests for std() function #11

Closed
wants to merge 1 commit into from

Conversation

nipsn
Copy link
Contributor

@nipsn nipsn commented Nov 16, 2023

An implementation of the std function: https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.std.html

When the ddof parameter is equal to the table length (after preprocessing the axis), we essentially divide by zero when we compute the standard deviation. In pure q, this results in infinite values (0W), but in pandas, this operation results in nan values, so I kept this later case on my implementation to match pandas' imlementation.

Also, pandas' implementation includes an extra parameter, skipna. However, since it's ignored on mean and median, it has been ignored here as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant