DEV Community

Punitha
Punitha

Posted on

Statistical Operations

What is unique()?

  • np.unique() returns the unique values from an array.

Step 1:

Output:

What is Median?

  • The median is the middle value of the data after sorting.

Step 1:

Output:

What is Mean?

  • Mean is the average of the values.

Step 1:

Output:

What is Average?

  • NumPy also provides np.average().

Step 1:

Output:

Top comments (0)