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

Updated utils.py for better warning messages #617

Conversation

srinivaspavan9
Copy link
Contributor

Updated Warning Message in utils.py for Issue #379

This PR addresses BUG-Inputting the wrong column name in a chart reports empty data (#379). The issue was due to the misleading warning message in utils.py, which implied an empty DataFrame when a non-existent column name was used.

Changes Made:

  • Updated the warning message to clearly indicate when a column is not found, and to list the available columns in the DataFrame.
  • This change aims to provide clearer and more accurate information, avoiding confusion about the state of the DataFrame.

Screenshot after the change:

image

taipy/gui/_renderers/utils.py Outdated Show resolved Hide resolved
Copy link
Member

@FredLL-Avaiga FredLL-Avaiga left a comment

Choose a reason for hiding this comment

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

check also the linter comments

taipy/gui/_renderers/utils.py Outdated Show resolved Hide resolved
Copy link
Member

@FredLL-Avaiga FredLL-Avaiga left a comment

Choose a reason for hiding this comment

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

👌

@srinivaspavan9
Copy link
Contributor Author

how do i resolve these linter errors

@trgiangdo
Copy link
Member

how do i resolve these linter errors

Hello @srinivaspavan9, sorry for the late response.

First you need to merge your branch with the latest Avaiga:develop branch. Then, in the linter error log, I saw that

/taipy/gui/_renderers/utils.py:35:121: E501 line too long (191 > 120 characters)

which means that the line you edited is too long.

Please address the issue before we can merge your change to Taipy. Thank you

@FredLL-Avaiga
Copy link
Member

Hi @srinivaspavan9,
Thanks for your work.
Taipy 3.1 is coming soon and it would be nice to include your contribution.
We're freezing the code very soon (likely tomorrow). Can you finish this PR before that deadline ?
Fred

@FabienLelaquais FabienLelaquais added the 🖰 GUI Related to GUI label Mar 1, 2024
@FredLL-Avaiga FredLL-Avaiga changed the base branch from develop to feature/#379-better-message March 13, 2024 08:31
@FredLL-Avaiga FredLL-Avaiga merged commit 504caaf into Avaiga:feature/#379-better-message Mar 13, 2024
16 of 18 checks passed
FredLL-Avaiga added a commit that referenced this pull request Mar 13, 2024
* Updated utils.py for better warning messages (#617)

* Updated utils.py for better warning messages

* added value check for dataframe

* added the check at the warning level

* resolved linter comments

* added required changes

* Linter Changes

* Linter Changes

---------

Co-authored-by: Fred Lefévère-Laoide <[email protected]>

* format and small fix

* Update taipy/gui/_renderers/utils.py

Co-authored-by: Fabien Lelaquais <[email protected]>

* Update taipy/gui/_renderers/utils.py

Co-authored-by: Fabien Lelaquais <[email protected]>

* mypy

* linter

---------

Co-authored-by: Srinivas Pavan <[email protected]>
Co-authored-by: Fred Lefévère-Laoide <[email protected]>
Co-authored-by: Fabien Lelaquais <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🖰 GUI Related to GUI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants