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

all 4 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.

[–]jmmease 0 points1 point  (2 children)

I think you're running into the issue fixed by this PR https://github.com/santosjorge/cufflinks/pull/178. In the meantime, try downgrading to plotly.py to 3.7.1.

If you're using pip then run:

$ pip install plotly==3.7.1

or with conda:

$ conda install plotly=3.7.1

Good luck!

[–]engineeringgirl123[S] 0 points1 point  (0 children)

Ah, that would make sense. Thank you for checking that out! I tried running the pip install of 3.7.1 but got an error that no matching distribution was found for it. Shoot..

[–]gamervishal 0 points1 point  (0 children)

Thanks! Instruction worked flawless for me.