Unique ValuesUnique Values

Data often gets duplicated in DataFrames. For instance, in our countries DataFrame, the continent column has repeated entries. There's a function that retrieves an array of distinct values from a specific DataFrame column. Let's revisit this DataFrame.

Now, let's apply the unique() function to the continent and country columns.


Given the audi_cars DataFrame, please identify all distinct values in the year and fueltype columns.

Everything was clear?

Section 3. Chapter 16
toggle bottom row