Learning machine learning? Try my machine learning flashcards or Machine Learning with Python Cookbook.

# Create A Vector

## Preliminaries

```
# Load library
import numpy as np
```

## Create Row Vector

```
# Create a vector as a row
vector_row = np.array([1, 2, 3])
```

## Create Column Vector

```
# Create a vector as a column
vector_column = np.array([[1],
[2],
[3]])
```

#### Find an error or bug?

Everything on this site is available on GitHub. Head to and submit a suggested change. Include the tutorial's URL in the issue.