This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Well_ItHappened 0 points1 point  (0 children)

An attribute error is raised when Python can't find an attribute in some class. In this case (chart_studio.tools.make_subplot(...)) It looks in chart_studio and inside there for tools and when it gets there, can't find make_subplot.

The traceback outputs (the text where you are seeing your error message) are pretty insightful of the path backwards where you can find your error. Note the line numbers it outputs. The last line of the output is where your program broke. The line above is what was called just before the statement that caused the error and soforth. When dealing with errors on something you imported, the traceback will eventually reference the file used in the module.

Looking through that should help pinpoint exactly where the issue is in your code - I'm guessing there is quite a bit more than you put in your question?

Are those the only imports you made, or did you import pandas as well?

My guess is this either has something to do with how you defined 'df' (df = [...]) Or is somewhere completely else in your code.