question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DOC: improve documentation for Series.resample

See original GitHub issue

Reference docs (see: http://pandas.pydata.org/pandas-docs/stable/generated/pandas.Series.resample.html):

Tutorial docs:

  • example using custom how function
  • example showing how to use base

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Reactions:1
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
kdebrabcommented, Jan 27, 2017

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 label='right' is to be found in the comment of code input [245] on http://pandas-docs.github.io/pandas-docs-travis/timeseries.html#basics.

0reactions
mroeschkecommented, Mar 31, 2020

Since the resample API has changed since the original issue has been posted. I think most of the original points have been addressed:

  • closed default behavior is specified
  • how is no longer relevant (bfill and ffill are separate methods)

We can open up individual issues for any remaining improvements documentation.

Read more comments on GitHub >

github_iconTop Results From Across the Web

pandas.DataFrame.resample — pandas 1.5.2 documentation
Convenience method for frequency conversion and resampling of time series. The object must have a datetime-like index ( DatetimeIndex , PeriodIndex , or ......
Read more >
pandas resample documentation - Stack Overflow
See the timeseries documentation. It includes a list of offsets (and 'anchored' offsets), and a section about resampling.
Read more >
Using the Pandas “Resample” Function - Towards Data Science
This article is an introductory dive into the technical aspects of the pandas resample function for datetime manipulation.
Read more >
Resampling — Dataiku DSS 11 documentation
The resampling recipe transforms time series data occurring in irregular time intervals into equispaced data. The recipe is also useful for transforming ...
Read more >
How To Resample and Interpolate Your Time Series Data ...
In this tutorial, you will discover how to use Pandas in Python to both increase and decrease the sampling frequency of time series...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found