Skip to content

algorithms.unique kills python interpreter #1898

Closed
@changhiskhan

Description

@changhiskhan

32-bit Python 2.7.3 in 64-bit Windows 7

pandas master, numpy 1.6.1

Python 2.7.3 |EPD 7.3-2 (32-bit)| (default, Apr 12 2012, 14:30:37) [MSC v.1500 32 bit (Intel)]
Type "copyright", "credits" or "license" for more information.

IPython 0.14.dev -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.

In [1]: lst = ['A', 'B', 'C', 'D', 'E']

In [2]: import pandas.core.algorithms as algos

In [3]: algos.unique(lst)
Out[3]: array([A, B, C, D, E], dtype=object)

In [4]: len(algos.unique(lst)) # --> triggers "Python has stopped working..."

Oddly enough this actually works:

In [3]: rs = algos.unique(lst)

In [4]: len(rs)
Out[4]: 5

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions