> ## Documentation Index
> Fetch the complete documentation index at: https://docs.morph-data.io/llms.txt
> Use this file to discover all available pages before exploring further.

# @morph.func

`@morph.func`のアノテーションをつけることでmorphで実行できる関数として登録ができます。

```python theme={"dark"}
@morph.func(
    name: str | None = None,
    description: str | None = None,
)
def func_name(context):
	# write your code here
```

## Parameters

<ParamField body="name" type="string" default="関数名">
  処理名, 他のファイルから呼び出す時のエイリアスとしても使える。
</ParamField>

<ParamField body="description" type="string">
  処理の説明を記述できる
</ParamField>

## 使用例

```python theme={"dark"}
@morph.func(
    name="example_python_cell",
    description="Example Python cell",
)
def get_data_from_database(context):
    # write your code here
	return pd.DataFrame({
        "name": ["John", "Doe"],
        "age": [20, 30],
    })
```
