-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Cleanup converter docs and StrCategoryConverter behavior #29059
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
Conversation
- Use getter in docs - Use a single instance of StrCategoryConverter for all types - avoids warning since some methods convert to `np.str_` and others are just `str`, which previously got separate instances - added test
What happens if folks try to plot strings of three different types on the same axis? (Or is that equivalent to the methods converting internally to different string types?) |
It is equivalent, we just had different instances for no real reason, as the converter instance is portable between types. we do a single instance for the various date types which work similarly. |
cause I copy pasted from how dates did it 😅 |
ax.plot(['a', 'b', 'd'], ['f', 'a', 'b']) | ||
ax.bar(['b', 'c', 'd'], ['g', 'e', 'd']) | ||
axis_test(ax.xaxis, ['a', 'b', 'd', 'c']) | ||
axis_test(ax.yaxis, ['e', 'g', 'f', 'a', 'b', 'd']) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
b doesn't end up on the yaxis so I don't think this test should pass?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Never mind, just saw the b 🤦
doc failure is #29058 |
Failures are unrelated, merging so I can get 3.10 out since we have two approvals Appveyor was the stochastic test_determinism timeout error |
np.str_
and others arejust
str
, which previously got separate instancesPR summary
PR checklist