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

Better error message when trying to set an index from a scalar coordinate #8109

Merged
merged 1 commit into from
Aug 30, 2023

Conversation

benbovy
Copy link
Member

@benbovy benbovy commented Aug 24, 2023

The message suggests using .expand_dims().

@benbovy benbovy added the plan to merge Final call for comments label Aug 25, 2023
@benbovy benbovy merged commit e5a38f6 into pydata:main Aug 30, 2023
@benbovy benbovy deleted the pandas-index-scalar-error-msg branch August 30, 2023 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plan to merge Final call for comments topic-indexing
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Impossible to define variable as an index when the variable has only 1 value
1 participant