Skip to content

Commit

Permalink
updating nb
Browse files Browse the repository at this point in the history
  • Loading branch information
rbyh committed Sep 19, 2024
1 parent 31249ed commit cc66331
Showing 1 changed file with 19 additions and 15 deletions.
34 changes: 19 additions & 15 deletions docs/token_usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -157,24 +157,28 @@ For example:
results = q.by(s).run()
results.select("number_1", "number_2", "sum").print(format="rich")
We can check the responses and also confirm that the `comment` is `None`:

results.select("number_1", "number_2", "sum", "sum_comment").print(format="rich")


Output:

.. code-block:: text
┏━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━┓
┃ scenario ┃ scenario ┃ answer ┃
┃ .number_1 ┃ .number_2 ┃ .sum ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━┩
│ 0 │ 5 │ 5 │
├───────────┼───────────┼────────┤
│ 1 │ 4 │ 5 │
├───────────┼───────────┼────────┤
│ 2 │ 3 │ 5 │
├───────────┼───────────┼────────┤
│ 3 │ 2 │ 5 │
├───────────┼───────────┼────────┤
│ 4 │ 1 │ 5 │
└───────────┴───────────┴────────┘
┏━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━┓
┃ scenario ┃ scenario ┃ answer ┃ comment ┃
┃ .number_1 ┃ .number_2 ┃ .sum ┃ .sum_comment ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━┩
│ 0 │ 5 │ 5 │ None │
├───────────┼───────────┼────────┼──────────────┤
│ 1 │ 4 │ 5 │ None │
├───────────┼───────────┼────────┼──────────────┤
│ 2 │ 3 │ 5 │ None │
├───────────┼───────────┼────────┼──────────────┤
│ 3 │ 2 │ 5 │ None │
├───────────┼───────────┼────────┼──────────────┤
│ 4 │ 1 │ 5 │ None │
└───────────┴───────────┴────────┴──────────────┘

0 comments on commit cc66331

Please sign in to comment.