rstudio / pins-python

https://rstudio.github.io/pins-python/
MIT License
52 stars 12 forks source link

docs: article on using custom metadata #188

Closed machow closed 1 year ago

machow commented 1 year ago

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.

machow commented 1 year ago

@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 😄

machow commented 1 year ago

I can look into getting the output here to wrap:

image
juliasilge commented 1 year ago

It would be nice for that really long output to wrap so it is easier to read.

machow commented 1 year ago

I've switched the docs build on github actions to use python 3.10, and call pprint.pprint in the article to nicely format metadata.

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 😭.