Skip to content

Commit 8530d6f

Browse files
committed
docs: build with py3.10 and use pprint
1 parent 43bfc05 commit 8530d6f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ jobs:
169169
- uses: actions/setup-python@v2
170170

171171
with:
172-
python-version: 3.8
172+
python-version: "3.10"
173173
- name: Install dependencies
174174
run: |
175175
python -m pip install --upgrade pip

docs/articles/customize-pins-metadata.Rmd

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ We'll begin by creating a temporary board for demonstration:
2626
import pins
2727
import pandas as pd
2828
29+
from pprint import pprint
30+
2931
board = pins.board_temp()
3032
```
3133

@@ -76,7 +78,9 @@ board.pin_read("some-cat")
7678
However, notice that if we use `board.pin_meta()`, the information we stored on categories is in the `.user` field.
7779

7880
```{python}
79-
board.pin_meta("some-cat")
81+
pprint(
82+
board.pin_meta("some-cat")
83+
)
8084
```
8185

8286
This enables us to write a special function for reading, to reconstruct the categorical, using the categories stashed in metadata:

0 commit comments

Comments
 (0)