Skip to content

Commit 4fa81f5

Browse files
author
Susan Vanderplas
committed
Fix some grouping ::: issues
1 parent d38cd5f commit 4fa81f5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

_freeze/part-gen-prog/03-data-struct/execute-results/html.json

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

part-gen-prog/03-data-struct.qmd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ print(digits_pi)
267267

268268
The Series object has a list of labels in the first printed column, and a list of values in the second.
269269
If we want, we can specify the labels manually to use as e.g. plot labels later:
270+
270271
```{python series-pandas-3}
271272
import pandas as pd
272273
weekdays = pd.Series(['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'], index = ['S', 'M', 'T', 'W', 'R', 'F', 'Sat'])
@@ -286,6 +287,7 @@ weekdays.index[6] = 'Z' # you can't assign things to the index to change it
286287
287288
weekdays
288289
```
290+
289291
:::
290292

291293
[^05-vectors-2]: A similar system exists in R libraries, but R doesn't handle multiple libraries having the same function names well, which leads to all sorts of confusion. At least python is explicit about it.

0 commit comments

Comments
 (0)