You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran into a problem with the Polars library and their approach to the Dict = Struct type (in Polars). A simple cast to String takes care of it, but I prefer to ask if there is a possibility to add functionality to show a column with type Struct without error.
Hi @Samox1 , I have a tentative PR, which you can try following these instructions.
Interestingly the reason why we see Object shown by DataTables is that the data passed to the table (a two dimensional array) contains dicts (which are converted to javascript maps). In my PR I am now replacing these dicts with their str representation, but so far the result is different from the default rendering by Polars so the PR might need a bit more work.
We could possibly use a cast as you do above, or look into the code that polars use to display these special dataframes.
I ran into a problem with the Polars library and their approach to the Dict = Struct type (in Polars). A simple cast to String takes care of it, but I prefer to ask if there is a possibility to add functionality to show a column with type Struct without error.
What appears now (in IPYNB file):
Example:
Returns:
with itables:
Adding casting to String:
itables returns:
The text was updated successfully, but these errors were encountered: