Commit 811accd
[pandas, pandas_panel] Update lectures for pandas 3.0 compatibility (#470)
* [pandas, pandas_panel] Update lectures for pandas 3.0 compatibility
anaconda 2026.06 (merged in #562) ships pandas 3.0.3, so the interim
pandas>=3 pip pin and anaconda=2025.12 are no longer needed. This branch
now carries only the lecture updates:
- pandas_panel: drop redundant future_stack=True from .stack() calls
(the new stacking layout is the default in pandas 3.0)
- pandas_panel: text now says axis=1 in groupby is "removed" not
"deprecated" (it is fully removed in 3.0)
- pandas: df.where(df.POP >= 20000, False) -> df.where(df.POP >= 20000)
so the example fills non-matching rows with NaN instead of scattering
False through the string columns
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* Address Copilot grammar feedback
- pandas: "replace the rest rows" -> "replace the remaining rows"
- pandas_panel: add commas around the introductory phrase / before "as"
to fix the run-on sentence about groupby axis=1 removal
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent d38394b commit 811accd
2 files changed
Lines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
352 | | - | |
| 352 | + | |
353 | 353 | | |
354 | 354 | | |
355 | | - | |
| 355 | + | |
356 | 356 | | |
357 | 357 | | |
358 | 358 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
| 153 | + | |
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
| 160 | + | |
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
| 170 | + | |
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
| |||
401 | 401 | | |
402 | 402 | | |
403 | 403 | | |
404 | | - | |
| 404 | + | |
405 | 405 | | |
406 | 406 | | |
407 | 407 | | |
| |||
432 | 432 | | |
433 | 433 | | |
434 | 434 | | |
435 | | - | |
| 435 | + | |
436 | 436 | | |
437 | 437 | | |
438 | 438 | | |
| |||
0 commit comments