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

264 improve normality test #267

Merged
merged 12 commits into from
Jan 2, 2024
Merged

264 improve normality test #267

merged 12 commits into from
Jan 2, 2024

Conversation

Mtk112
Copy link
Contributor

@Mtk112 Mtk112 commented Dec 29, 2023

Made improvements for normality test as requested in issue#264 .

Normality tests accepts now numpy ndarrays. Added test for ndarray.
Added check for empty np.ndarray.
Added checks and tests for non-numeric data.
Created new exception class, checks and tests for maximum sample size. Max set to 5000 samples.
@Mtk112 Mtk112 requested a review from nmaarnio December 29, 2023 08:55
@Mtk112 Mtk112 self-assigned this Dec 29, 2023
Added missing data handling, and tests for it.
Changed dataframe column validation for consistency.
@Mtk112 Mtk112 linked an issue Jan 2, 2024 that may be closed by this pull request
6 tasks
Copy link
Collaborator

@nmaarnio nmaarnio left a comment

Choose a reason for hiding this comment

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

Hey, just a few typing/documentation related things and should be good to go then

Comment on lines 62 to 63
data: Dataframe or numpy array containing the input data.
columns: Optional Columns to be used for testing.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
data: Dataframe or numpy array containing the input data.
columns: Optional Columns to be used for testing.
data: Dataframe or Numpy array containing the input data.
columns: Optional columns to be used for testing.

eis_toolkit/exploratory_analyses/statistical_tests.py Outdated Show resolved Hide resolved
eis_toolkit/exploratory_analyses/statistical_tests.py Outdated Show resolved Hide resolved
eis_toolkit/exploratory_analyses/statistical_tests.py Outdated Show resolved Hide resolved
- Fixed typos.
- Clarified return types, and improved docstring.
- Removed check and test for numeric data for Numpy array.
Better formatting for autogenerated docs.
Copy link
Collaborator

@nmaarnio nmaarnio left a comment

Choose a reason for hiding this comment

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

Looks good to me now! Merging

@nmaarnio nmaarnio merged commit 69414ce into master Jan 2, 2024
6 checks passed
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.

Improve normality test
2 participants