-
Notifications
You must be signed in to change notification settings - Fork 20
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
Expected Table-like input error when creating an altair chart #559
Comments
Hi can you show the full error message please |
TypeError Traceback (most recent call last) TypeError: Expected Table-like input or dict of arrays or sequence of arrays. During handling of the above exception, another exception occurred: TypeError Traceback (most recent call last) File c:\Users\e193645\AppData\Local\Programs\Python\Python313\Lib\site-packages\altair\vegalite\v5\api.py:3682, in TopLevelMixin.repr_mimebundle(self, *args, **kwds) File c:\Users\e193645\AppData\Local\Programs\Python\Python313\Lib\site-packages\altair\utils\display.py:232, in HTMLRenderer.call(self, spec, **metadata) File c:\Users\e193645\AppData\Local\Programs\Python\Python313\Lib\site-packages\altair\utils\mimebundle.py:129, in spec_to_mimebundle(spec, format, mode, vega_version, vegaembed_version, vegalite_version, embed_options, engine, **kwargs) File c:\Users\e193645\AppData\Local\Programs\Python\Python313\Lib\site-packages\altair\utils_vegafusion_data.py:273, in compile_with_vegafusion(vegalite_spec) File c:\Users\e193645\AppData\Local\Programs\Python\Python313\Lib\site-packages\vegafusion\runtime.py:408, in VegaFusionRuntime.pre_transform_spec(self, spec, local_tz, default_input_tz, row_limit, preserve_interactivity, inline_datasets, keep_signals, keep_datasets) File c:\Users\e193645\AppData\Local\Programs\Python\Python313\Lib\site-packages\vegafusion\runtime.py:330, in VegaFusionRuntime._import_inline_datasets(self, inline_datasets, inline_dataset_usage) TypeError: Expected Table-like input or dict of arrays or sequence of arrays. |
ah thanks - this'll be fixed by #560 |
Altair 5.5.0
VegaFusion 2.0.1
I'm trying to create charts using the vegafusion transformer, but I get the following error:
TypeError: Expected Table-like input or dict of arrays or sequence of arrays.
This code generates the error:
import pandas as pd
import altair as alt
chart_data = pd.DataFrame([1,2,3,4,5],columns=['y'])
alt.Chart(chart_data).mark_bar().encode(y='y')
I have a different computer with the same versions of Python, Altair and VegaFusion where this code works.
So far, I have tried to uninstall and reinstall Altair, VegaFusion and Python without success.
The text was updated successfully, but these errors were encountered: