Getting a Python error with gscatter: How to troubleshoot and fix it?

20 Replies, 1538 Views

Hey! I ran into the same Python error gscatter issue, and it turned out my data had some hidden duplicates or mismatched indices.

Try resetting your DataFrame index with `.reset_index(drop=True)` before passing the data to gscatter. Also, this site [Real Python](https://realpython.com) has a great tutorial on matplotlib that might help you debug further.

Messages In This Thread



Users browsing this thread: 1 Guest(s)