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: Raise informative error message if a non-existent column name is passed #3533

Merged

Conversation

MarcoGorelli
Copy link
Contributor

closes #3532

@MarcoGorelli MarcoGorelli changed the title fix: Show informative error message if a non-existent column name is passed fix: Raise informative error message if a non-existent column name is passed Aug 12, 2024
@MarcoGorelli MarcoGorelli force-pushed the missing-column-name-error-message branch from d80c24a to e343aae Compare August 12, 2024 09:24
@MarcoGorelli MarcoGorelli marked this pull request as ready for review August 12, 2024 09:30
@dangotbanned dangotbanned self-assigned this Aug 12, 2024
@dangotbanned dangotbanned self-requested a review August 12, 2024 10:27
Just to be extra cautious, since the original message in vega#3532 referenced `pandas` directly
Copy link
Member

@dangotbanned dangotbanned left a comment

Choose a reason for hiding this comment

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

Thanks for the quick fix @MarcoGorelli!

I wasn't expecting you'd object to d9e219b (#3533) but let me know if you do.

Other than that, I only had one minor typing-related suggestion

altair/vegalite/v5/schema/channels.py Outdated Show resolved Hide resolved
@MarcoGorelli MarcoGorelli marked this pull request as draft August 12, 2024 15:25
data: pd.DataFrame | DataFrameLike | None = None,
data: IntoDataFrame | None = None,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think this wasn't quite right to begin with, looking into it

@MarcoGorelli MarcoGorelli marked this pull request as ready for review August 12, 2024 16:46
Copy link
Member

@dangotbanned dangotbanned left a comment

Choose a reason for hiding this comment

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

Thanks @MarcoGorelli

@dangotbanned dangotbanned merged commit 95f5d31 into vega:main Aug 12, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

regression: unclear error message when plotting non-existent column name
2 participants