Skip to content

Commit d810a72

Browse files
authored
DOC: updated pandas/core/series.py for SS06 errors (pandas-dev#34716)
1 parent 7b668b4 commit d810a72

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

pandas/core/series.py

+9-6
Original file line numberDiff line numberDiff line change
@@ -2935,8 +2935,10 @@ def combine_first(self, other) -> "Series":
29352935

29362936
def update(self, other) -> None:
29372937
"""
2938-
Modify Series in place using non-NA values from passed
2939-
Series. Aligns on index.
2938+
Modify Series in place using values from passed Series.
2939+
2940+
Uses non-NA values from passed Series to make updates. Aligns
2941+
on index.
29402942
29412943
Parameters
29422944
----------
@@ -3451,6 +3453,8 @@ def sort_index(
34513453

34523454
def argsort(self, axis=0, kind="quicksort", order=None) -> "Series":
34533455
"""
3456+
Return the integer indices that would sort the Series values.
3457+
34543458
Override ndarray.argsort. Argsorts the value, omitting NA/null values,
34553459
and places the result in the same locations as the non-NA values.
34563460
@@ -3733,8 +3737,7 @@ def reorder_levels(self, order) -> "Series":
37333737

37343738
def explode(self) -> "Series":
37353739
"""
3736-
Transform each element of a list-like to a row, replicating the
3737-
index values.
3740+
Transform each element of a list-like to a row.
37383741
37393742
.. versionadded:: 0.25.0
37403743
@@ -3792,6 +3795,7 @@ def explode(self) -> "Series":
37923795
def unstack(self, level=-1, fill_value=None):
37933796
"""
37943797
Unstack, also known as pivot, Series with MultiIndex to produce DataFrame.
3798+
37953799
The level involved will automatically get sorted.
37963800
37973801
Parameters
@@ -4825,8 +4829,7 @@ def to_timestamp(self, freq=None, how="start", copy=True) -> "Series":
48254829

48264830
def to_period(self, freq=None, copy=True) -> "Series":
48274831
"""
4828-
Convert Series from DatetimeIndex to PeriodIndex with desired
4829-
frequency (inferred from index if not passed).
4832+
Convert Series from DatetimeIndex to PeriodIndex.
48304833
48314834
Parameters
48324835
----------

0 commit comments

Comments
 (0)