Skip to content

DOC: Fixing SS02 errors as per #25113 #25362

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ci/code_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,8 @@ fi
### DOCSTRINGS ###
if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then

MSG='Validate docstrings (GL06, GL07, GL09, SS04, PR03, PR05, PR10, EX04, RT04, RT05, SS05, SA05)' ; echo $MSG
$BASE_DIR/scripts/validate_docstrings.py --format=azure --errors=GL06,GL07,GL09,SS04,PR03,PR04,PR05,EX04,RT04,RT05,SS05,SA05
MSG='Validate docstrings (GL06, GL07, GL09, SS04, PR03, PR05, PR10, EX04, RT04, RT05, SS05, SA05, SS02)' ; echo $MSG
$BASE_DIR/scripts/validate_docstrings.py --format=azure --errors=GL06,GL07,GL09,SS04,PR03,PR04,PR05,EX04,RT04,RT05,SS05,SA05,SS02
RET=$(($RET + $?)) ; echo $MSG "DONE"

fi
Expand Down
14 changes: 7 additions & 7 deletions pandas/_libs/tslibs/timedeltas.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ _no_input = object()
@cython.wraparound(False)
def ints_to_pytimedelta(int64_t[:] arr, box=False):
"""
convert an i8 repr to an ndarray of timedelta or Timedelta (if box ==
Convert an i8 repr to an ndarray of timedelta or Timedelta (if box ==
True)

Parameters
Expand Down Expand Up @@ -247,7 +247,7 @@ def array_to_timedelta64(object[:] values, unit='ns', errors='raise'):


cdef inline int64_t cast_from_unit(object ts, object unit) except? -1:
""" return a casting of the unit represented to nanoseconds
""" Return a casting of the unit represented to nanoseconds
round the fractional part of a float to our precision, p """
cdef:
int64_t m
Expand Down Expand Up @@ -792,7 +792,7 @@ cdef class _Timedelta(timedelta):

def _ensure_components(_Timedelta self):
"""
compute the components
Compute the components
"""
if self.is_populated:
return
Expand All @@ -815,7 +815,7 @@ cdef class _Timedelta(timedelta):

cpdef timedelta to_pytimedelta(_Timedelta self):
"""
return an actual datetime.timedelta object
Return an actual datetime.timedelta object
note: we lose nanosecond resolution if any
"""
return timedelta(microseconds=int(self.value) / 1000)
Expand Down Expand Up @@ -851,7 +851,7 @@ cdef class _Timedelta(timedelta):
return self.value / 1e9

def view(self, dtype):
""" array view compat """
""" Array view compat """
return np.timedelta64(self.value).view(dtype)

@property
Expand Down Expand Up @@ -1260,7 +1260,7 @@ class Timedelta(_Timedelta):

def floor(self, freq):
"""
return a new Timedelta floored to this resolution
Return a new Timedelta floored to this resolution

Parameters
----------
Expand All @@ -1270,7 +1270,7 @@ class Timedelta(_Timedelta):

def ceil(self, freq):
"""
return a new Timedelta ceiled to this resolution
Return a new Timedelta ceiled to this resolution

Parameters
----------
Expand Down
2 changes: 1 addition & 1 deletion pandas/io/pytables.py
Original file line number Diff line number Diff line change
Expand Up @@ -1080,7 +1080,7 @@ def create_table_index(self, key, **kwargs):
s.create_index(**kwargs)

def groups(self):
"""return a list of all the top-level nodes (that are not themselves a
"""Return a list of all the top-level nodes (that are not themselves a
pandas storage object)
"""
_tables()
Expand Down