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!: filter and check columns in section main functions #133

Merged
merged 10 commits into from
Sep 20, 2023

Conversation

mbelak-dtml
Copy link
Collaborator

@mbelak-dtml mbelak-dtml commented Sep 18, 2023

Previously columns were computed in __init__s of the respective subsections of multivariate analysis.
This required that the DataFrame, on which the analysis is performed, is specified in the constructor, which prevented creating the section without the DataFrame.
This change makes #36 much easier and enables removal of the add_<section> methods.

BREAKING CHANGE: parameter df removed from constructors of:

  • edvart.report_sections.multivariate_analysis.MultivariateAnalysis,
  • edvart.report_sections.multivariate_analysis.PCA,
  • edvart.report_sections.multivariate_analysis.ParallelCoordinates,
  • edvart.report_sections.multivariate_analysis.ParallelCategories,
  • edvart.report_sections.umap.UMAP.

BREAKING CHANGE: parameter nunique_max removed from constructors of edvart.multivariate_analysis.ParallelCategories and edvart.multivariate_analysis.ParallelCoordinates. The value is now hard-coded. Specify columns manually to override the default choice of columns, which was influenced by the parameter nunique_max.

@mbelak-dtml mbelak-dtml self-assigned this Sep 18, 2023
@mbelak-dtml mbelak-dtml force-pushed the feat/filter-columns-in-main-functions branch 6 times, most recently from 3548127 to 607956b Compare September 19, 2023 06:53
Previously columns were computed in `__init__`s of the respective subsections of multivariate analysis.
This required that the DataFrame, on which the analysis is performed, is specified in the constructor,
which prevented creating the section without the DataFrame.
This change makes #36 much easier and enables removal
of the `add_<section>` methods.
@mbelak-dtml mbelak-dtml force-pushed the feat/filter-columns-in-main-functions branch from 607956b to a5f97d4 Compare September 19, 2023 06:56
@mbelak-dtml mbelak-dtml marked this pull request as ready for review September 19, 2023 10:35
@mbelak-dtml mbelak-dtml requested a review from lukany September 19, 2023 10:35
edvart/report_sections/multivariate_analysis.py Outdated Show resolved Hide resolved
edvart/report_sections/umap.py Outdated Show resolved Hide resolved
@mbelak-dtml
Copy link
Collaborator Author

Blocked by #139

Old behavior: columns [a,b,c] specified -> get pairs [(a,b), (b,a),
(a,c), (c,a), (b,c), (c,b)]
New behavior: get pairs ([a,b], [a,c], [b,c])
The use of a non-interactive plotting backend prevents plots from being
displayed in pop-up windows while running tests. The tests would
previously block when a plot was displayed until the user closed it.

Resolves #31
@mbelak-dtml mbelak-dtml requested a review from lukany September 20, 2023 08:12
@mbelak-dtml
Copy link
Collaborator Author

Blocked by #139

Unblocked

@mbelak-dtml
Copy link
Collaborator Author

@lukany I don't know what I did wrong, but I tried to merge main into this branch, but instead of adding a merge commit I somehow added the new commits from main one by one.

@lukany
Copy link
Contributor

lukany commented Sep 20, 2023

@lukany I don't know what I did wrong, but I tried to merge main into this branch, but instead of adding a merge commit I somehow added the new commits from main one by one.

🤷

lukany
lukany previously approved these changes Sep 20, 2023
Previously columns were computed in `__init__`s of the respective subsections of multivariate analysis.
This required that the DataFrame, on which the analysis is performed, is specified in the constructor,
which prevented creating the section without the DataFrame.
This change makes #36 much easier and enables removal
of the `add_<section>` methods.
@lukany lukany enabled auto-merge September 20, 2023 09:01
@lukany lukany added this pull request to the merge queue Sep 20, 2023
Merged via the queue into main with commit 2b44fa3 Sep 20, 2023
@lukany lukany deleted the feat/filter-columns-in-main-functions branch September 20, 2023 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants