-
Notifications
You must be signed in to change notification settings - Fork 12
docs: article on using custom metadata #188
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
|
@juliasilge do you mind taking a quick look at the article? https://pr-188--pins-python.netlify.app/articles/customize-pins-metadata.html Hopefully it looks very familiar 😄 |
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.
Looks nice! 🙌
| some_cat.categories | ||
| ``` | ||
|
|
||
| Notice that categories is just the unique values in the categorical. |
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.
| Notice that categories is just the unique values in the categorical. | |
| Notice that categories are just the unique values in the categorical. |
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.
Ah, thanks! I switched it to "the categories attribute", to try and match up with this sentence later in the article: "the information we stored on categories is".
Does that seem okay? (It's tricky territory)
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.
Yes, makes sense to me! 👍
|
It would be nice for that really long output to wrap so it is easier to read. |
Co-authored-by: Julia Silge <julia.silge@gmail.com>
|
I've switched the docs build on github actions to use python 3.10, and call Note that this approach only works in python 3.10 and up, though :/. I tinkered with getting it working for earlier python versions, but it seems like a bit of work 😭. |

This PR adds an article to the docs, that is a translation of "create consistent metadata for pins". It uses a pandas Categorical for the factor.