Skip to content
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

Chart creation failing with latest Pandas Version #42

Open
sunny2309 opened this issue Oct 4, 2022 · 0 comments
Open

Chart creation failing with latest Pandas Version #42

sunny2309 opened this issue Oct 4, 2022 · 0 comments

Comments

@sunny2309
Copy link

Hello PdVega Team,

I am trying to create some charts using PdVega. The current version of pandas on my PC is 1.3.0.

Chart creation using PdVega is failing with below error.

~/anaconda3/lib/python3.7/site-packages/vega3/utils.py in sanitize_dataframe(df)
     38     df = df.copy()
     39 
---> 40     if isinstance(df.index, pd.core.index.MultiIndex):
     41         raise ValueError('Hierarchical indices not supported')
     42     if isinstance(df.columns, pd.core.index.MultiIndex):

AttributeError: module 'pandas.core' has no attribute 'index'

If I change the version to below 1.0.0 (0.25.3 and below) for pandas then only charts are getting created.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant