Python NumPy flipud() is an inbuilt NumPy function that is **used to flip the entries in the array in the up-down direction.** The shape of the array is preserved. The **flipud()** function is used to flip a given array in the up/down direction. The NumPy flip() function flips the entries in each column in the up or down direction. The rows are preserved but appear in the different order than before.

**Python NumPy flipud()**

Flip array(entries in each column) in the up-down direction, shape preserved. Python numpy.flipud() to flip ndarray vertically. The ud means Up / Down. The Numpy.flipud() returns a view. Because a view shares memory with the original array, changing one value changes the other.

**Syntax**

```
numpy.flipud(array)
```

#python #numpy