Skip to content

Commit

Permalink
docs: uniform connect via url across backends in why ibis (#8865)
Browse files Browse the repository at this point in the history
## Description of changes

thanks to #8860, can simplify the connections to URIs in the "Why Ibis"
article. this makes the tabsets slightly cleaner

## Issues closed
  • Loading branch information
lostmygithubaccount authored Apr 11, 2024
1 parent 8553915 commit e7f8ea8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/why.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ t.to_parquet("penguins.parquet")
## DuckDB

```{python}
con = ibis.duckdb.connect() # <1>
con = ibis.connect("duckdb://") # <1>
t = con.read_parquet("penguins.parquet")
t.limit(3)
Expand All @@ -45,7 +45,7 @@ t.group_by(["species", "island"]).agg(count=t.count()).order_by("count")
## Polars

```{python}
con = ibis.polars.connect() # <1>
con = ibis.connect("polars://") # <1>
t = con.read_parquet("penguins.parquet")
t.limit(3)
Expand All @@ -60,7 +60,7 @@ t.group_by(["species", "island"]).agg(count=t.count()).order_by("count")
## DataFusion

```{python}
con = ibis.datafusion.connect() # <1>
con = ibis.connect("datafusion://") # <1>
t = con.read_parquet("penguins.parquet")
t.limit(3)
Expand Down Expand Up @@ -255,7 +255,7 @@ GROUP BY species, island
## DuckDB

```{python}
con = ibis.duckdb.connect()
con = ibis.connect("duckdb://")
t = con.read_parquet("penguins.parquet")
g = t.alias("penguins").sql(sql)
g
Expand All @@ -268,7 +268,7 @@ g.order_by("count")
## DataFusion

```{python}
con = ibis.datafusion.connect()
con = ibis.connect("datafusion://")
t = con.read_parquet("penguins.parquet")
g = t.alias("penguins").sql(sql)
g
Expand Down

0 comments on commit e7f8ea8

Please sign in to comment.