Skip to content

Commit

Permalink
change emoji
Browse files Browse the repository at this point in the history
  • Loading branch information
jitingxu1 committed May 28, 2024
1 parent e116b68 commit d95f193
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 14 deletions.
4 changes: 2 additions & 2 deletions docs/support_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def make_support_matrix():
}
special_step = {
"Drop": {"support": [], "not_support": []},
"Cast": {"support": ["type-specific"], "not_support": ["type-specific"]},
"Cast": backend_specific,
"MutateAt": backend_specific,
"Mutate": backend_specific,
}
Expand Down Expand Up @@ -175,7 +175,7 @@ def count_full(column):
)

def count_partial(column):
return sum(1 for value in column if isinstance(value, str))
return sum(1 for value in column if isinstance(value, str) and value not in ("backend-specific", "type-specific"))

partial_coverage = pd.Index(
support_matrix.apply(count_partial)
Expand Down
32 changes: 20 additions & 12 deletions docs/support_matrix.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,19 @@ hide:
This is a Quarto dashboard that shows
the IbisML transformations each backend supports.

::: {.callout}
Due to differences in SQL dialects and upstream support for different
operations in different backends, support for the full breadth of the IbisML Transfromations
varies.
operations in different backends, support for the full breadth of the IbisML transfromations
varies:

::: {.callout}
Some steps have multiple implementations. For example, `DiscretizeKBins` supports different `strategy`(such as `quantile`, `uniform`) for defining the widths of the bins. We display the support for each implementation.
:::
1. ✅ Fully supported
2. 🚫 Not supported
3. 🟡 Partial support (hover over for more information)
4. 🔍 Backend-specific support (check [operation support matrix](https://ibis-project.org/support_matrix) for details)

:::
:::


### {width=25%}

Expand Down Expand Up @@ -66,16 +70,20 @@ import re
matrix = make_support_matrix()
def custom_replace(value):
if value is True:
return "✅"
elif value is False:
return "🚫"
elif value == "backend-specific":
return "<span title='check backend-specific support'>🔍</span>"
else:
return f"<span title='Support: {value}'>🟡</span>"
show(
matrix.replace({
True: "✔️",
False: "🚫",
"backend-specific": "<a href='https://ibis-project.org/support_matrix' title='Click for backend-specific support'>🔧</a>",
"type-specific": "<a title='check backend specific type'>🔍</a>",
}),
matrix.applymap(custom_replace),
ordering=False,
paging=False,
buttons=["copy", "excel", "csv"],
)
```

0 comments on commit d95f193

Please sign in to comment.