Skip to content

Expected Table-like input error when creating an altair chart #559

Description

@samesand

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions