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

feat: implement median and add unit tests #119

Merged
merged 3 commits into from
Jan 17, 2023
Merged

feat: implement median and add unit tests #119

merged 3 commits into from
Jan 17, 2023

Conversation

axiomofjoy
Copy link
Contributor

No description provided.

@axiomofjoy
Copy link
Contributor Author

@RogerHYang Let me know what you think regarding additional unit tests, e.g., for NaN values.

@axiomofjoy axiomofjoy linked an issue Dec 19, 2022 that may be closed by this pull request
Comment on lines +8 to +9
def median(df: pd.DataFrame) -> "pd.Series[float]":
return df.median()
Copy link
Contributor

Choose a reason for hiding this comment

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

similar to other metrics, requires a set of columns to run this on?

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

@axiomofjoy axiomofjoy Jan 17, 2023

Choose a reason for hiding this comment

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

Will address in a subsequent PR

@mikeldking
Copy link
Contributor

@axiomofjoy don't forget to tag your issue

@axiomofjoy
Copy link
Contributor Author

@axiomofjoy don't forget to tag your issue

Tracks #103

@axiomofjoy axiomofjoy merged commit 7e4620d into main Jan 17, 2023
@axiomofjoy axiomofjoy deleted the feat/median branch January 17, 2023 21:31
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.

[metrics] Median for numerical data
2 participants