Skip to content

Commit

Permalink
docs: fix warnings from deprecations (#166)
Browse files Browse the repository at this point in the history
Co-authored-by: Deepyaman Datta <[email protected]>
  • Loading branch information
lostmygithubaccount and deepyaman committed Sep 16, 2024
1 parent 76ffd3a commit 11628f7
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 17 deletions.
7 changes: 3 additions & 4 deletions docs/tutorial/pytorch.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ flight_data = (
"time_hour",
)
# Exclude missing data
.dropna()
.drop_null()
)
flight_data
```
Expand Down Expand Up @@ -131,10 +131,9 @@ flight_data_with_unique_key
```

```{python}
# FIXME(deepyaman): Proposed key isn't unique for actual departure date.
flight_data_with_unique_key.group_by("unique_key").mutate(
cnt=flight_data_with_unique_key.count()
)[ibis._.cnt > 1]
count=flight_data_with_unique_key.count()
).filter(ibis._["count"] > 1)
```

```{python}
Expand Down
7 changes: 3 additions & 4 deletions docs/tutorial/scikit-learn.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ flight_data = (
"time_hour",
)
# Exclude missing data
.dropna()
.drop_null()
)
flight_data
```
Expand Down Expand Up @@ -130,10 +130,9 @@ flight_data_with_unique_key
```

```{python}
# FIXME(deepyaman): Proposed key isn't unique for actual departure date.
flight_data_with_unique_key.group_by("unique_key").mutate(
cnt=flight_data_with_unique_key.count()
)[ibis._.cnt > 1]
count=flight_data_with_unique_key.count()
).filter(ibis._["count"] > 1)
```

```{python}
Expand Down
7 changes: 3 additions & 4 deletions docs/tutorial/xgboost.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ flight_data = (
"time_hour",
)
# Exclude missing data
.dropna()
.drop_null()
)
flight_data
```
Expand Down Expand Up @@ -130,10 +130,9 @@ flight_data_with_unique_key
```

```{python}
# FIXME(deepyaman): Proposed key isn't unique for actual departure date.
flight_data_with_unique_key.group_by("unique_key").mutate(
cnt=flight_data_with_unique_key.count()
)[ibis._.cnt > 1]
count=flight_data_with_unique_key.count()
).filter(ibis._["count"] > 1)
```

```{python}
Expand Down
7 changes: 3 additions & 4 deletions examples/Preprocess your data with recipes.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@
" \"time_hour\",\n",
" )\n",
" # Exclude missing data\n",
" .dropna()\n",
" .drop_null()\n",
")\n",
"flight_data"
]
Expand Down Expand Up @@ -489,10 +489,9 @@
}
],
"source": [
"# FIXME(deepyaman): Proposed key isn't unique for actual departure date.\n",
"flight_data_with_unique_key.group_by(\"unique_key\").mutate(\n",
" cnt=flight_data_with_unique_key.count()\n",
")[ibis._.cnt > 1]"
" count=flight_data_with_unique_key.count()\n",
").filter(ibis._[\"count\"] > 1)"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ dynamic = ["version", "description"]
dask = ["dask[dataframe]"]
doc = [
"clickhouse-connect",
"ibis-framework[bigquery,clickhouse,dask,datafusion,druid,duckdb,examples,exasol,flink,impala,mssql,mysql,oracle,pandas,polars,postgres,pyspark,risingwave,snowflake,sqlite,trino]",
"ibis-framework[bigquery,clickhouse,dask,datafusion,druid,duckdb,examples,exasol,flink,impala,mssql,mysql,oracle,pandas,polars,postgres,pyspark,risingwave,snowflake,sqlite,trino] >=9.1",
"itables",
"jupyter",
"quartodoc",
Expand Down

0 comments on commit 11628f7

Please sign in to comment.