-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
DOC: improve documentation for Series.resample #5023
Comments
@cancan101 this one |
some more issues:
|
Working on adding examples into the resample API docs. Hopefully this will help users who don't have time to read the tutorials to use |
FWIW: By default resample uses start timestamp convention (i.e. closed='left' and label='left'), except for weekly, monthly, quarter and annual resolution, where the default is end timestamp convention (i.e. closed='right' and label='right', in other words the week, month, quarter or year is represented by its last day). The code doing that is here: https://github.com/pandas-dev/pandas/blob/v0.19.2/pandas/tseries/resample.py#L983-L997. As of 0.19.2, the incorrect documentation about |
sure a PR would be great for this |
Apparently there is also an undocumented |
An explanation of the |
Working on adding documentation for the |
Since the
We can open up individual issues for any remaining improvements documentation. |
Reference docs (see: http://pandas.pydata.org/pandas-docs/stable/generated/pandas.Series.resample.html):
fill_method
. Some of which arepad
,bfill
,ffill
.-- The list seems to be documented for the
method
onfillna
: http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.fillna.html#pandas.DataFrame.fillnaconvention
parameter is not well documented. It is unclear what the values ofend
orstart
means (and the associated aliases). (Resample convention='start' not functioning properly #15432 is dupe), PR DOC: document convention argument for resample() #16965kind
parameters is also unclear. The best I could get from it was a infinite stack recursion: Series.resample leads to RuntimeError: maximum recursion depth exceeded while calling a Python object #5026. (DOC: Add information on kind parameter to resample docstring #19084)how
can also be a function or list of functions, not only a stringclosed
andlabel
keywords, I think it could be explained which are default in which cases (which is not always the same). In every case, thatlabel='right'
is default as stated in the docs (http://pandas.pydata.org/pandas-docs/dev/timeseries.html#up-and-downsampling) is not true.how
Tutorial docs:
how
functionbase
The text was updated successfully, but these errors were encountered: