File tree 2 files changed +12
-9
lines changed
2 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -1457,15 +1457,16 @@ def mean(self, skipna=True):
1457
1457
Parameters
1458
1458
----------
1459
1459
skipna : bool, default True
1460
- Whether to ignore any NaT elements
1460
+ Whether to ignore any NaT elements.
1461
1461
1462
1462
Returns
1463
1463
-------
1464
- scalar (Timestamp or Timedelta)
1464
+ scalar
1465
+ Timestamp or Timedelta.
1465
1466
1466
1467
See Also
1467
1468
--------
1468
- numpy.ndarray.mean
1469
+ numpy.ndarray.mean : Returns the average of array elements along a given axis.
1469
1470
Series.mean : Return the mean value in a Series.
1470
1471
1471
1472
Notes
Original file line number Diff line number Diff line change @@ -1169,20 +1169,22 @@ def to_flat_index(self):
1169
1169
1170
1170
def to_series (self , index = None , name = None ):
1171
1171
"""
1172
- Create a Series with both index and values equal to the index keys
1173
- useful with map for returning an indexer based on an index.
1172
+ Create a Series with both index and values equal to the index keys.
1173
+
1174
+ Useful with map for returning an indexer based on an index.
1174
1175
1175
1176
Parameters
1176
1177
----------
1177
1178
index : Index, optional
1178
- index of resulting Series. If None, defaults to original index
1179
+ Index of resulting Series. If None, defaults to original index.
1179
1180
name : str, optional
1180
- name of resulting Series. If None, defaults to name of original
1181
- index
1181
+ Dame of resulting Series. If None, defaults to name of original
1182
+ index.
1182
1183
1183
1184
Returns
1184
1185
-------
1185
- Series : dtype will be based on the type of the Index values.
1186
+ Series
1187
+ The dtype will be based on the type of the Index values.
1186
1188
"""
1187
1189
1188
1190
from pandas import Series
You can’t perform that action at this time.
0 commit comments