Skip to content

Commit eab8d1f

Browse files
committed
Remove old code
1 parent eb34853 commit eab8d1f

File tree

2 files changed

+0
-53
lines changed

2 files changed

+0
-53
lines changed

pandas/_libs/lib.pyx

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -250,54 +250,6 @@ def item_from_zerodim(val: object) -> object:
250250
return val
251251

252252

253-
@cython.wraparound(False)
254-
@cython.boundscheck(False)
255-
def fast_unique_multiple(list arrays, sort: bool = True):
256-
"""
257-
Generate a list of unique values from a list of arrays.
258-
259-
Parameters
260-
----------
261-
list : array-like
262-
List of array-like objects.
263-
sort : bool
264-
Whether or not to sort the resulting unique list.
265-
266-
Returns
267-
-------
268-
list of unique values
269-
"""
270-
cdef:
271-
ndarray[object] buf
272-
Py_ssize_t k = len(arrays)
273-
Py_ssize_t i, j, n
274-
list uniques = []
275-
dict table = {}
276-
object val, stub = 0
277-
278-
for i in range(k):
279-
buf = arrays[i]
280-
n = len(buf)
281-
for j in range(n):
282-
val = buf[j]
283-
if val not in table:
284-
table[val] = stub
285-
uniques.append(val)
286-
287-
if sort is None:
288-
try:
289-
uniques.sort()
290-
except TypeError:
291-
warnings.warn(
292-
"The values in the array are unorderable. "
293-
"Pass `sort=False` to suppress this warning.",
294-
RuntimeWarning,
295-
)
296-
pass
297-
298-
return uniques
299-
300-
301253
@cython.wraparound(False)
302254
@cython.boundscheck(False)
303255
def fast_unique_multiple_list(lists: list, sort: bool = True) -> list:

pandas/tests/libs/test_lib.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,6 @@ def test_fast_unique_multiple_list_gen_sort(self):
3939
out = lib.fast_unique_multiple_list_gen(gen, sort=False)
4040
tm.assert_numpy_array_equal(np.array(out), expected)
4141

42-
def test_fast_unique_multiple_unsortable_runtimewarning(self):
43-
arr = [np.array(["foo", Timestamp("2000")])]
44-
with tm.assert_produces_warning(RuntimeWarning):
45-
lib.fast_unique_multiple(arr, sort=None)
46-
4742

4843
class TestIndexing:
4944
def test_maybe_indices_to_slice_left_edge(self):

0 commit comments

Comments
 (0)