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

fix: avoid warning message in corr metadata #179

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tensulin
Copy link
Collaborator

@tensulin tensulin commented Aug 28, 2024

when metadata is correlated the case might happen that subgroups have 1 or less members, this results in a warning

The attached CSV files are in reality TSV files, but github doesn't allow tsv file ending

example_metadata.csv
correlation_metadata.TXT
correlated_metadata_result_table.csv

Example code:

res_corrmeta = correlate_metadata(
    prj_metadata_filtered[list(set(prj_metadata_filtered.columns) - set(cols_ignore))],
    categorials=list(cols_categorial),
    ordinals=cols_ordinal,
    dates=cols_date,
    intervals=list(cols_interval)
)
display(res_corrmeta[1])

Expected warning without the fix:
Screenshot from 2024-08-28 12-26-52

when metadata is correlated the case might happen that subgroups have 1 or less members, this results in a warning
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.

1 participant