Skip to content

Commit

Permalink
docs(udf): examples in pandas have the incorrect import path
Browse files Browse the repository at this point in the history
  • Loading branch information
abelsonlive authored and cpcloud committed Dec 6, 2022
1 parent f0e8758 commit 49028b8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/backends/Pandas.md
Expand Up @@ -26,7 +26,7 @@ Here's how to define an element-wise function:

```python
import ibis.expr.datatypes as dt
from ibis.backends.pandas import udf
from ibis.backends.pandas.udf import udf

@udf.elementwise(input_type=[dt.int64], output_type=dt.double)
def add_one(x):
Expand All @@ -44,7 +44,7 @@ Here's how to define a reduction function:

```python
import ibis.expr.datatypes as dt
from ibis.backends.pandas import udf
from ibis.backends.pandas.udf import udf

@udf.reduction(input_type=[dt.double], output_type=dt.double)
def double_mean(series):
Expand All @@ -62,7 +62,7 @@ Here's how to define an analytic function:

```python
import ibis.expr.datatypes as dt
from ibis.backends.pandas import udf
from ibis.backends.pandas.udf import udf

@udf.analytic(input_type=[dt.double], output_type=dt.double)
def zscore(series):
Expand Down Expand Up @@ -114,7 +114,7 @@ in your function:

```python
import ibis.expr.datatypes as dt
from ibis.backends.pandas import udf
from ibis.backends.pandas.udf import udf

@udf.elementwise([dt.int64], dt.double)
def add_two(x, **kwargs): # do stuff with kwargs
Expand All @@ -128,7 +128,7 @@ For example:

```python
import ibis.expr.datatypes as dt
from ibis.backends.pandas import udf
from ibis.backends.pandas.udf import udf

@udf.elementwise([dt.int64], dt.double)
def add_two_with_none(x, y=None):
Expand Down

0 comments on commit 49028b8

Please sign in to comment.