diff options
author | robot-piglet <robot-piglet@yandex-team.com> | 2024-09-27 12:17:57 +0300 |
---|---|---|
committer | robot-piglet <robot-piglet@yandex-team.com> | 2024-09-27 12:31:37 +0300 |
commit | e8a5d05f83cdc42d11a4527ed499ce38edc374e8 (patch) | |
tree | 32213497bb9c08bad676763249916318c130f460 | |
parent | f0e09a4705c81a02cbea3034faf3cfac0da4cad9 (diff) | |
download | ydb-e8a5d05f83cdc42d11a4527ed499ce38edc374e8.tar.gz |
Intermediate changes
commit_hash:fbd782c5f687b714157ab11825fa87bf99f35174
-rw-r--r-- | contrib/python/pandas/py2/pandas/_libs/algos.pyx | 2 | ||||
-rw-r--r-- | contrib/python/pandas/py2/pandas/_libs/lib.pyx | 8 | ||||
-rw-r--r-- | contrib/python/pandas/py2/pandas/_libs/tslibs/timedeltas.pyx | 1 |
3 files changed, 6 insertions, 5 deletions
diff --git a/contrib/python/pandas/py2/pandas/_libs/algos.pyx b/contrib/python/pandas/py2/pandas/_libs/algos.pyx index b3c519ab99..c44df7b9b4 100644 --- a/contrib/python/pandas/py2/pandas/_libs/algos.pyx +++ b/contrib/python/pandas/py2/pandas/_libs/algos.pyx @@ -114,7 +114,7 @@ cpdef ndarray[int64_t, ndim=1] unique_deltas(ndarray[int64_t] arr): @cython.wraparound(False) @cython.boundscheck(False) -def is_lexsorted(list_of_arrays: list) -> bint: +def is_lexsorted(list_of_arrays: list) -> bool: cdef: Py_ssize_t i Py_ssize_t n, nlevels diff --git a/contrib/python/pandas/py2/pandas/_libs/lib.pyx b/contrib/python/pandas/py2/pandas/_libs/lib.pyx index 9f1f4d3f1d..6a7ded0808 100644 --- a/contrib/python/pandas/py2/pandas/_libs/lib.pyx +++ b/contrib/python/pandas/py2/pandas/_libs/lib.pyx @@ -91,11 +91,11 @@ def values_from_object(obj: object): def memory_usage_of_objects(arr: object[:]) -> int64_t: """ return the memory usage of an object array in bytes, does not include the actual bytes of the pointers """ - i: Py_ssize_t - n: Py_ssize_t - size: int64_t + cdef: + Py_ssize_t i + Py_ssize_t n + int64_t size = 0 - size = 0 n = len(arr) for i in range(n): size += arr[i].__sizeof__() diff --git a/contrib/python/pandas/py2/pandas/_libs/tslibs/timedeltas.pyx b/contrib/python/pandas/py2/pandas/_libs/tslibs/timedeltas.pyx index 8a46a0d1f1..1968388253 100644 --- a/contrib/python/pandas/py2/pandas/_libs/tslibs/timedeltas.pyx +++ b/contrib/python/pandas/py2/pandas/_libs/tslibs/timedeltas.pyx @@ -320,6 +320,7 @@ cdef inline _decode_if_necessary(object ts): return ts +@cython.cpow(True) cdef inline parse_timedelta_string(object ts): """ Parse a regular format timedelta string. Return an int64_t (in ns) |