---
title: alias (Column)
description: "Column.alias method in PySpark: Give the column an alias."
canonical_url: https://docs.databricks.com/gcp/en/pyspark/reference/classes/column/alias
---

# alias (Column)

Give the column an alias.

## Syntax

```python
alias(*alias, **kwargs)
```

## Parameters

| Parameter | Type | Description             |
| --------- | ---- | ----------------------- |
| `alias`   | str  | One or more alias names |

## Returns

Column

## Examples

```python
df = spark.createDataFrame(
     [(2, "Alice"), (5, "Bob")], ["age", "name"])
df.select(df.age.alias("age2")).collect()
```

```Output
# [Row(age2=2), Row(age2=5)]
```

```python
df.select(df.age.alias("age3", metadata={'max': 99})).schema['age3'].metadata['max']
```

```Output
# 99
```
