@@ -1434,10 +1434,9 @@ def reindex(self, axes_to_reindex=None, new_axis=None, fill_value=nan, inplace=F
1434
1434
1435
1435
Parameters
1436
1436
----------
1437
- axes_to_reindex : axis ref or str or Group or Axis or dict {axis ref: axis} or \
1438
- list of tuple (axis ref, axis) or list of Axis or AxisCollection
1437
+ axes_to_reindex : axis ref or dict {axis ref: axis} or list of (axis ref, axis) or sequence of Axis
1439
1438
Axis(es) to reindex. If a single axis reference is given, the `new_axis` argument must be provided.
1440
- If string or Group or Axis object, the corresponding axis is reindexed if found among existing,
1439
+ If string, Group or Axis object, the corresponding axis is reindexed if found among existing,
1441
1440
otherwise a new axis is added.
1442
1441
If a list of Axis or an AxisCollection is given, existing axes are reindexed while missing ones are added.
1443
1442
new_axis : int, str, list/tuple/array of str, Group or Axis, optional
@@ -2856,7 +2855,7 @@ def with_total(self, *args, **kwargs):
2856
2855
`median` and `percentile`. Defaults to `sum`.
2857
2856
label : scalar value, optional
2858
2857
Label to use for the total. Applies only to aggregated axes, not groups. Defaults to "total".
2859
- **kwargs : int or str or Group or any combination of those, optional
2858
+ \ **kwargs : int or str or Group or any combination of those, optional
2860
2859
Axes or groups along which to compute the aggregates.
2861
2860
2862
2861
Returns
@@ -2876,7 +2875,7 @@ def with_total(self, *args, **kwargs):
2876
2875
F 4 5 6 7 22
2877
2876
total 4 6 8 10 28
2878
2877
2879
- Using another function and label
2878
+ Using another function and label
2880
2879
2881
2880
>>> arr.with_total(op=mean, label='mean')
2882
2881
gender\time 2013 2014 2015 2016 mean
0 commit comments