Skip to content

Commit e251587

Browse files
committed
Fix failing test with indexing
1 parent 27df317 commit e251587

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pandas/_libs/lib.pyx

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def memory_usage_of_objects(ndarray[object, ndim=1] arr):
6060
cdef int64_t s = 0
6161

6262
n = len(arr)
63-
for i from 0 < i < n:
63+
for i in range(n):
6464
s += arr[i].__sizeof__()
6565
return s
6666

pandas/tests/sparse/series/test_series.py

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
from itertools import product
2727

28+
2829
def _test_data1():
2930
# nan-based
3031
arr = np.arange(20, dtype=float)

0 commit comments

Comments
 (0)