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

TypeError on page #538

SandervandenOord opened this issue Dec 18, 2020 · 2 comments · Fixed by #585

TypeError on page #538

SandervandenOord opened this issue Dec 18, 2020 · 2 comments · Fixed by #585


Copy link

There's currently an error displayed for this code block on page

flight_subset = flights[flights.carrier.isin([b'AA', b'US', b'OH'])]
flight_subset.hvplot.hist('depdelay', by='carrier', bins=20, bin_range=(-20, 100), width=300, subplots=True)

Screenshot 2020-12-18 at 21 47 17

TypeError: Object of type 'Array' is not JSON serializable
:NdLayout [carrier]
:Histogram [depdelay] (depdelay_count)

Copy link

Thanks for reporting this error!

Definitely should be working so I'll file it as a bug and assign it to the next milestone.

@jlstevens jlstevens added this to the 0.7.1 milestone Jan 25, 2021
Copy link

brl0 commented Apr 7, 2021

After accidentally creating a duplicate of this issue in #583, I think I found the problem.
The issue seems to be the bytes objects in the carrier list, the example works with regular strings, so just change this line:

flight_subset = flights[flights.carrier.isin(['AA', 'US', 'OH'])]

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

Successfully merging a pull request may close this issue.

3 participants