You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This makes `skipna=False` an undesirable default. In the methods with `dropna`, this phenomena does not occur. By defaulting to `dropna=False` in these
64
+
methods, the results when NA values are encountered do not obscure the results of non-NA values.
65
+
66
+
### Possible deprecation of `dropna`
67
+
68
+
This PDEP takes no position on whether some methods with a `dropna` argument should have said argument deprecated.
69
+
However, if such a deprecation is to be pursued, then we believe that the final behavior should
70
+
be that of `dropna=False` across any of the methods listed below. With this, a necessary first step
71
+
in the deprecation process would be to change the default value to `dropna=False`.
72
+
46
73
## Detailed Description
47
74
48
-
We propose to deprecate the current default of `dropna` and change it to
49
-
`False` across all applicable methods. The following methods have a dropna
50
-
argument, those marked with a `*` already default to `False`.
75
+
The following methods have a dropna argument, those marked with a `*` already default to `False`.
51
76
52
77
```python
53
78
Series.groupby
@@ -68,10 +93,15 @@ DataFrameGroupBy.nunique
68
93
DataFrameGroupBy.value_counts
69
94
```
70
95
96
+
We propose to deprecate the current default of `dropna` and change it to
97
+
`False` across all methods listed above.
98
+
71
99
## Timeline
72
100
73
101
If accepted, the current `dropna` default would be deprecated as part of pandas
74
-
2.x and this deprecation would be enforced in pandas 3.0.
102
+
2.x and this deprecation would be enforced in pandas 3.0. In pandas 2.x, `FutureWarning` messages would
103
+
be emitted on any calls to these methods where the value of `dropna` is unspecified and
0 commit comments