Benjamin
Benjamin

Reputation: 13

Why is it creating a method type object, I want an object of type list

un=df.WFID.unique
type(un)
>> method

WFID is a column with integer values and I want to get unique IDs from it.

Upvotes: 1

Views: 40

Answers (1)

Jimmar
Jimmar

Reputation: 4469

unique is a method, you need to call it

un = df.WFID.unique()

Upvotes: 1

Related Questions