-
-
Notifications
You must be signed in to change notification settings - Fork 17.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ENH: Let DataFrame.plot(kind="scatter")
scatter plot each column against index if x
/y
not given.
#51972
Comments
The bug does exist in the current main branch. Should we add default values (e.g., pandas/pandas/plotting/_core.py Lines 890 to 898 in f8a37a7
Also, maybe unrelatedly, it seems that pandas/pandas/plotting/_core.py Line 792 in f8a37a7
pandas/pandas/plotting/_core.py Lines 924 to 928 in f8a37a7
|
Sorry for my rushed reply. After a deeper view, adding something for the pandas/pandas/plotting/_matplotlib/core.py Line 1187 in 74e8c00
|
Allowing scatter to follow the This would intuitively allow users to switch from: |
Feature Type
Adding new functionality to pandas
Changing existing functionality in pandas
Removing existing functionality in pandas
Problem Description
To my surprise,
df.plot(kind="scatter")
simply raises aValueError
complaining about missing "x" and "y".In many cases, particularly time series data, the sensible thing to do is to scatter plot each channel against the index.
Feature Description
When x/y is not given scatter plot columns against the index.
Alternative Solutions
Of course, one could just do it manually.
Additional Context
No response
The text was updated successfully, but these errors were encountered: