You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed while helping a student that there's a bug when calling a scatter plot as a method on a DataFrame. Regardless of what the index is or what the x argument is, it appears that pandas makes the x argument into the index, and then searches for the x in the columns, where it no longer exists. When calling the same directly through matplotlib as plt.scatter, it worked properly.
The text was updated successfully, but these errors were encountered:
Sorry, I was helping a student whose code wasn't working, I don't have the original code myself. However I tried to recreate the error myself and I'm now getting something different:
does work, so I'm not sure if this is a bug or if scatter is supposed to throw an error when datetime objects are on the X axis. I'm also not sure why the error I'm getting is different from my student's.
I noticed while helping a student that there's a bug when calling a scatter plot as a method on a DataFrame. Regardless of what the index is or what the x argument is, it appears that pandas makes the x argument into the index, and then searches for the x in the columns, where it no longer exists. When calling the same directly through matplotlib as plt.scatter, it worked properly.
The text was updated successfully, but these errors were encountered: