-
Notifications
You must be signed in to change notification settings - Fork 799
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
Use .items instead (Python 3.11) #2723
Comments
Fixed in #2683 |
I don't understand how to issue was resolved when it still appears on GitHub. |
The issue you describe has been fixed. |
Hi Martijn, is there an approximate date for the new version to be released? |
My hope: official release, early 2023 and a first release candidate this year. |
@mattijn @joelostblom Would it make sense to have a mini-release (like 4.2.1) fixing this |
Sorry missed to reply here. I think a minor release would be nice in theory, but probably not worth the effort since we would need to sort out which commits should go into it and maybe even rebase the main repo to reorder the commits accordingly since we have added all new functionality into the main branch right now. I think our time is better spent fixing the outstanding issues for the next major release. |
@simiaolin @berryny There is now a release candidate of Altair 5, which supports Vega-Lite 5! Details and info on how to install can be found in #2937 |
I'm still encountering this bug in Altair 5.1.2. |
|
Hello everyone. I am having the same issue with Altair 5.2.0 and Pandas 2.2.0. . import Altair as alt x = np.arange(100) alt.Chart(source).mark_line().encode( Here is the error message: AttributeError Traceback (most recent call last) c:\Users\usuario\AppData\Local\Programs\Python\Python311\Lib\site-packages\altair\vegalite\v4\api.py in to_dict(self, *args, **kwargs) c:\Users\usuario\AppData\Local\Programs\Python\Python311\Lib\site-packages\altair\vegalite\v4\api.py in _prepare_data(data, context) c:\Users\usuario\AppData\Local\Programs\Python\Python311\Lib\site-packages\toolz\functoolz.py in pipe(data, *funcs) c:\Users\usuario\AppData\Local\Programs\Python\Python311\Lib\site-packages\toolz\functoolz.py in call(self, *args, **kwargs) c:\Users\usuario\AppData\Local\Programs\Python\Python311\Lib\site-packages\altair\vegalite\data.py in default_data_transformer(data, max_rows) AttributeError: 'Series' object has no attribute 'iteritems' It seems that Altair is still trying to use 'iteritems' with pandas. |
Looking at the path in your error message, it seems like you're still using Altair v4. Make sure you close down all notebooks and restart your IDE after updating to Altair 5, and try again after that. |
Thank you very much for this! I did not know I was using Altair v4! It worked when restarted the IDE. |
I wrote the code below which can be found here
The graphic appears in Visual Code Notebook however VS and github displays the below error message
Thoughts?
Please follow these steps to make it more efficient to solve your issue:
vega_datasets
.The text was updated successfully, but these errors were encountered: