diff --git a/ci/code_checks.sh b/ci/code_checks.sh index ac6aade106ce6..8aad8bf80deb9 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -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 diff --git a/pandas/_libs/tslibs/timedeltas.pyx b/pandas/_libs/tslibs/timedeltas.pyx index 6e40063fb925a..35c8562815ced 100644 --- a/pandas/_libs/tslibs/timedeltas.pyx +++ b/pandas/_libs/tslibs/timedeltas.pyx @@ -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 @@ -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 @@ -792,7 +792,7 @@ cdef class _Timedelta(timedelta): def _ensure_components(_Timedelta self): """ - compute the components + Compute the components """ if self.is_populated: return @@ -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) @@ -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 @@ -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 ---------- @@ -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 ---------- diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py index 2ee8759b9bdd8..70842b02cf49a 100644 --- a/pandas/io/pytables.py +++ b/pandas/io/pytables.py @@ -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()