Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Unique Values | Analyzing the Data
Pandas First Steps

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.

Task

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
course content

Course Content

Pandas First Steps

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.

Task

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
some-alt