TypeError on All Plots
See original GitHub issueWhen trying to create any plot, I receive the error: TypeError: super(type, obj): obj must be an instance or subtype of type
. This occurs even when running the examples as below:
import plotly_express as px
gapminder = px.data.gapminder()
px.choropleth(gapminder, locations="iso_alpha", color="lifeExp", hover_name="country", animation_frame="year",
color_continuous_scale=px.colors.sequential.Plasma, projection="natural earth")
Using plotly-express==0.1
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Python error in plots hierarchy : TypeError: unhashable type: 'list'
The error tells you that you cannot use a list as a dictionary key. I.e. the following is not possible in python a...
Read more >How to Fix in Pandas: TypeError: no numeric data to plot
This error occurs when you attempt to plot values from a pandas DataFrame, but there are no numeric values to plot. This error...
Read more >How to Fix: TypeError: no numeric data to plot - GeeksforGeeks
This error can be fixed by converting the data to be plotted into numeric data. To convert the data to numeric data we...
Read more >TypeError when trying to plot a combined geopandas ...
The TypeError is being triggered by the fact that this is an empty GeoDataFrame; the plotting code did not expect this edge case....
Read more >Scatter Plots - Problem Solving with Python
The required positional arguments supplied to ax.scatter() are two lists or arrays. The first positional argument specifies the x-value of each point on...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hmmm that is very strange. Let’s close it for now. I did make a mistake in packaging up the PyPI build which I’ve just corrected (and pushed up as 0.1.1) so maybe that will prevent others from seeing it.
Okay, this is strange, but after restarting the notebook server, the plots are working fine. I’m willing to say this was some version issue because I installed plotly express and tried to use it on an existing notebook server.
I can close since things seem to be working on my end unless you were able to reproduce the error.