I really like the new Table view, there is only one thing i get this error:
2024-07-17 14:51:00.075 ERROR : Result can not be serialized to JSON: Out of range float values are not JSON compliant
I think it is because my pandas dataframe is to large(400 rows), is possible to still show this, and what is the max size of the dataframe?
I thought it had to do with max values but the dataframe is not allowed to take Nan value, when using this line it is fixed:
df = df.fillna(“”)
Hi Luuk,
Good to hear you like the new TableView. I expect Nan to work. Do you also get the error with this simple TableView?
@TableView("Table View", duration_guess=1)
def table_view(self, **kwargs):
df = pd.DataFrame([[1, np.nan], [3]])
return TableResult(df)
The TableView works with np.nan
. But not all NaNs are made equal. There certain NaN fillers that can not be JSON serialised. Als np.inf will trigger this error.
Btw: The issue with a dataset > 100 rows not showing is fixed in SDK v14.15.0