Commit 1effc38
authored
Time Series: More compatibility with pandas 2.0 (#496)
> `groupby.mean()` has `numeric_only=` argument whose default value was
> `True` in the past but since pandas 2.0, its default value is `False`.
>
> An implication is that string columns are not dropped when a
> statistical method such as `mean` or `std` is called on the `groupby`
> object (as was done in the past). To solve the issue, pass
> `numeric_only=True`.
>
> -- https://stackoverflow.com/a/765979311 parent 3ed51f3 commit 1effc38
File tree
3 files changed
+2
-5
lines changed- topic/timeseries
3 files changed
+2
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
560 | 560 | | |
561 | 561 | | |
562 | 562 | | |
563 | | - | |
| 563 | + | |
564 | 564 | | |
565 | 565 | | |
566 | 566 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | 22 | | |
26 | 23 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
566 | 566 | | |
567 | 567 | | |
568 | 568 | | |
569 | | - | |
| 569 | + | |
570 | 570 | | |
571 | 571 | | |
572 | 572 | | |
| |||
0 commit comments