Skip to content

Commit 513dd82

Browse files
committed
update pandas to 2.2.*
1 parent 635b11b commit 513dd82

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

environment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ channels:
55
dependencies:
66
- python>=3.11,<3.13
77
- altair-all=5.5.*
8-
- pandas=1.5.*
8+
- pandas=2.2.*
99
- scipy
1010
- matplotlib
1111
- jupyter

modules/module1/module1-27-fruit_bowl_statistics.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ ____
156156
#| exercise: using_df_describe_b
157157
#| check: true
158158
solution = hockey_players[['Salary']].sum()
159-
assert isinstance(result, type(solution)), "The result type is incorrect."
159+
assert isinstance(result, type(solution)), "Are you using .sum()?"
160160
assert solution[0] == result[0], "Did you create player_cost properly?"
161161
print_correct_msg()
162162
```

modules/module1/slides/module1_07.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ cereal.loc[5:10, 'calories':'fiber']
106106
The general format to slice both rows and columns together looks like this:
107107

108108
```python
109-
`cereal.loc['row name start':'row name end', 'column name start':'column name end']`
109+
cereal.loc['row name start':'row name end', 'column name start':'column name end']
110110
```
111111

112112

modules/module1/slides/module1_26.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ Here are some examples of things that we can calculate. First we calculate the m
165165
---
166166

167167
```{python}
168-
cereal.mean()
168+
cereal.mean(numeric_only=True)
169169
```
170170

171171

0 commit comments

Comments
 (0)