Course Content

# NumPy in a Nutshell

1. Getting Started with NumPy

4. Important Functions

NumPy in a Nutshell

## Sorting Arrays

Now, let's dive into **sorting** arrays. Sorting an array involves arranging its elements in a specific order, whether it's ascending, descending, or some other sequence.

Let's try to sort the array:

Note

The

`sort()`

function returns acopyof the array, while the original array remains unchanged.

Let's try to sort a 2-D array:

# Task

You have the following array: `[15, -2, 33, 47, -55, 16, 0, 834]`

. Your task is to sort it.

Everything was clear?

Course Content

# NumPy in a Nutshell

1. Getting Started with NumPy

4. Important Functions

NumPy in a Nutshell

## Sorting Arrays

Now, let's dive into **sorting** arrays. Sorting an array involves arranging its elements in a specific order, whether it's ascending, descending, or some other sequence.

Let's try to sort the array:

Note

The

`sort()`

function returns acopyof the array, while the original array remains unchanged.

Let's try to sort a 2-D array:

# Task

You have the following array: `[15, -2, 33, 47, -55, 16, 0, 834]`

. Your task is to sort it.

Everything was clear?