-
-
Notifications
You must be signed in to change notification settings - Fork 18.7k
DOC: update the pandas.DataFrame.plot.area docstring #20170
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3348,7 +3348,7 @@ def area(self, x=None, y=None, **kwds): | |
Coordinates for the X axis. By default uses the index. | ||
y : label or position, optional | ||
Column to plot. By default uses all columns. | ||
stacked : boolean, default True | ||
stacked : bool, default True | ||
Area plots are stacked by default. Set to False to create a | ||
unstacked plot. | ||
**kwds : optional | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you also document the (the validation script will complain about it, but you can ignore that again) |
||
|
@@ -3362,7 +3362,7 @@ def area(self, x=None, y=None, **kwds): | |
|
||
See Also | ||
-------- | ||
pandas.DataFrame.plot : Draw plots. | ||
DataFrame.plot : Make plots of DataFrame using matplotlib / pylab. | ||
|
||
Examples | ||
-------- | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As @dukebody says, for both
x
andy
, in the first line we should have the type, more than a short description. It's a bit tricky, aslabel
can be anything, but I think we're using something likeobject or int, optional
. Then, we can sure clarify that it's thelabel
or theposition
in the description.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I kept it consistent with
DataFrame.plot
, which is the more complete docstring example I could find.