Replies: 6 comments
-
Does the sort actually work for you? It didn't do anything for me when I tested with the import pandas as pd
import numpy as np
from datetime import date, datetime
today = date.today().toordinal()
data = pd.DataFrame({
"int": np.arange(100),
"float": [i * 1.5 for i in range(100)],
"bool": [True for i in range(100)],
"date": [date.fromordinal(today + i) for i in range(100)],
"datetime": [datetime.now() for i in range(100)],
"string": [str(i) for i in range(100)]
})
PerspectiveWidget(data, sort=[["date", Sort.DESC]]) |
Beta Was this translation helpful? Give feedback.
-
If |
Beta Was this translation helpful? Give feedback.
-
Your installation looks broken (at least - the theme CSS + web component + python library are from conflicting versions). I see (at least) two issues:
(Converting this issue to a discussion) |
Beta Was this translation helpful? Give feedback.
-
As a data point, I just upgraded to 3.1 and sorting, reset and the debug panel seem to work as expected. The correct syntax is now: PerspectiveWidget(data, sort=[["date", "desc"]]) |
Beta Was this translation helpful? Give feedback.
-
hi - sorry - should've checked I was on the most recent version...
name: perspective-test
channels:
- defaults
- conda-forge
dependencies:
- python
- jupyterlab
- perspective also looks like only 3.0.1 available on conda just deleted the env and tried again with: name: perspective-test
channels:
- defaults
- conda-forge
dependencies:
- python
- jupyterlab>4
- perspective>3 and get the following error saying I required pyarrow. and then it seems to be working correctly :) from datetime import date, datetime
import numpy as np
import pandas as pd
import perspective
from perspective import PerspectiveWidget
import ipywidgets as w
data = pd.DataFrame({
"int": np.arange(100),
"float": [i * 1.5 for i in range(100)],
"bool": [True for i in range(100)],
"date": [date.today() for i in range(100)],
"datetime": [datetime.now() for i in range(100)],
"string": [str(i) for i in range(100)]
})
data.to_csv("data.csv")
dg = perspective.PerspectiveWidget(
data,
)
dg if I now try and open (maybe this is fixed in the most recent version?) |
Beta Was this translation helpful? Give feedback.
-
The name of the PYPI package is
Again, Perspective does not support Conda yet. This includes mamba. |
Beta Was this translation helpful? Give feedback.
-
Bug Report
Steps to Reproduce:
bool
into "Group By" fieldExpected Result:
when you make changes to the UI config settings they are updated in the debug JSON
Actual Result:
Environment:
fresh install -
environment.yml
Additional Context:
some other issues I've encountered with the jupyter perspective widget vs the online examples (e.g. https://perspective.finos.org/block/?example=editable). True in both jupyter notebooks and the
PerspectiveCSV
viewer.Beta Was this translation helpful? Give feedback.
All reactions