Skip to content

Commit 5229a04

Browse files
author
Susan Vanderplas
committed
get rid of pandas warnings
1 parent 4fa81f5 commit 5229a04

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -276,10 +276,10 @@ weekdays = pd.Series(['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'F
276276

277277
```{python series-pandas-4, error = T}
278278
# access individual objs
279-
weekdays[0]
280-
weekdays[1]
281-
weekdays['S']
282-
weekdays['Sat']
279+
weekdays.iloc[0]
280+
weekdays.iloc[1]
281+
weekdays.loc['S']
282+
weekdays.loc['Sat']
283283
284284
# access the index
285285
weekdays.index

0 commit comments

Comments
 (0)