-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Panic when computing histogram on column with inf value #469
Comments
I think what's going on is that the import json
import pandas as pd
import numpy as np
import vegafusion as vf
dataframe = pd.DataFrame({"col": [0, 1, 2, np.inf, 4]})
spec = json.loads(r"""
{
"$schema": "https://vega.github.io/schema/vega/v5.json",
"background": "white",
"padding": 5,
"width": 200,
"height": 200,
"style": "cell",
"data": [
{"name": "interval_intervalselection_0_store"},
{"name": "click_pointselection_0_store"},
{"name": "dataframe", "url": "vegafusion+dataset://dataframe"},
{
"name": "data_0",
"source": "dataframe",
"transform": [
{
"type": "extent",
"field": "col",
"signal": "layer_0_layer_0_bin_maxbins_50_col_extent"
},
{
"type": "formula",
"expr": "layer_0_layer_0_bin_maxbins_50_col_extent",
"as": "extent"
}
]
}
]
}
""")
vf.runtime.pre_transform_datasets(spec, ["data_0"], inline_datasets=dict(dataframe=dataframe))
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
VegaFusion panics when computing a histogram on a column with
inf
values.The text was updated successfully, but these errors were encountered: