Skip to content

Commit

Permalink
vDataFrame idisplay - Sorting bugfix (#1272)
Browse files Browse the repository at this point in the history
Modified the javascript code to ensure that the values can be sorted.

To ensure that the style stays professional, i modified the style.css file as well.
  • Loading branch information
mail4umar authored Sep 3, 2024
1 parent 954e3e3 commit 4b4ce77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
12 changes: 0 additions & 12 deletions verticapy/jupyter/_javascript.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,18 +220,6 @@ def clean_data(data: ArrayLike) -> ArrayLike:
val = "{:,}".format(val)
except:
pass
if isinstance(val, bool) is False and not isinstance(val, NoneType):
data[i][
j
] = f"""
<div style="background-color: transparent;
border: none; text-align: center;
width: 100%; scrollbar-width: none;
overflow-x: scroll; white-space: nowrap;">
{val}
</div>"""
continue

if isinstance(val, bool):
val = (
"<center>&#9989;</center>"
Expand Down
2 changes: 2 additions & 0 deletions verticapy/jupyter/html/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ table td {
overflow: hidden;
text-align: center !important;
background-color: #FAFAFA;
white-space: nowrap !important;
}

table tr:nth-child(1) {
background-color: #FFFFFF;
}
Expand Down

0 comments on commit 4b4ce77

Please sign in to comment.