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: fix included columns in contingnecy tables #145

Merged
merged 1 commit into from
Sep 22, 2023

Conversation

mbelak-dtml
Copy link
Collaborator

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

A bug was introduced in #131, which caused columns not to be filtered if the parameter columns is specified resulting in useless contingency tables being generated.

To reproduce the previously existing bug:

import edvart
dataset = edvart.example_datasets.dataset_titanic()

report = edvart.Report(dataset).add_bivariate_analysis(columns=['Age', 'Fare', 'Survided', 'Sex']).show()

The above example displays contingency tables for numeric columns Age, Fare, which are numeric and thus contain many unique, resulting in huge & useless contingency tables being displayed.

@mbelak-dtml mbelak-dtml requested a review from lukany September 21, 2023 13:39
@mbelak-dtml mbelak-dtml self-assigned this Sep 21, 2023
A bug was introduced in #131, which caused columns not to be filtered if the parameter `columns` is specified resulting in useless contingency tables being generated.

To reproduce the previously existing bug:
```python
import edvart
dataset = edvart.example_datasets.dataset_titanic()

report = edvart.Report(dataset).add_bivariate_analysis(columns=['Age', 'Fare', 'Survided', 'Sex']).show()
```
The above example displays contingency tables for numeric columns `Age`, `Fare`, which are numeric and thus contain many unique, resulting in huge & useless contingency tables being displayed.
@mbelak-dtml mbelak-dtml force-pushed the fix/contingnecy-tables-include-columns branch from db149d6 to d8b89cd Compare September 21, 2023 13:45
@lukany lukany added this pull request to the merge queue Sep 22, 2023
Merged via the queue into main with commit caeffee Sep 22, 2023
@lukany lukany deleted the fix/contingnecy-tables-include-columns branch September 22, 2023 07:55
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