v.0.13.3
On 2023.01.02
This version has been deprecated. If used with the current API version it can produce unexpected behaviour or errors.
The package shimoku-api-python is no longer maintained
pip install --upgrade shimoku-api-pythonFixes
Now tables work correctly when defining a sorting column, without the use of filters. So now the following code:
data_ = [ {'date': dt.date(2021, 1, 1), 'x': 5, 'y': 5, 'filtA': 'A', 'filtB': 'Z', 'name': 'Ana'}, {'date': dt.date(2021, 1, 2), 'x': 6, 'y': 5, 'filtA': 'B', 'filtB': 'Z', 'name': 'Laura'}, {'date': dt.date(2021, 1, 3), 'x': 4, 'y': 5, 'filtA': 'A', 'filtB': 'W', 'name': 'Audrey'}, {'date': dt.date(2021, 1, 4), 'x': 7, 'y': 5, 'filtA': 'B', 'filtB': 'W', 'name': 'Jose'}, {'date': dt.date(2021, 1, 5), 'x': 3, 'y': 5, 'filtA': 'A', 'filtB': 'Z', 'name': 'Jorge'}, ] s.plt.table( title="Test-table", data=data_, menu_path='test/table-test', order=0, sort_table_by_col={'date': 'asc'}, )correctly results in:

Ascending order by date, without filters 
Descending order by date, without using filters
Improvements
The versions of the requiered libraries have been specified to avoid unnecessary headaches and version conflicts.
These are the necessary libraries and the versions needed:
pandas==1.5.2 requests==2.28.1 datetime==4.9 json5==0.9.10 shimoku-components-catalog==0.2
Last updated
Was this helpful?