O'Reilly logo

Learning pandas - Second Edition by Michael Heydt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Anchored offsets

Anchored offsets are frequencies that represent a given frequency and begin at a specific point such as a specific day of the week, month, or year. Anchored offsets use a specific shorthand nomenclature. As an example, the following strings specify a specific day of the week:

Alias

Description

W-SUN

Weekly on Sunday (same as 'W')

W-MON

Weekly on Monday

W-TUE

Weekly on Tuesday

W-WED

Weekly on Wednesday

W-THU

Weekly on Thursday

W-FRI

Weekly on Friday

W-SAT

Weekly on Saturday

As an example, the following generates an index that consists of the dates of all Wednesdays between the two specified dates:

Anchored offsets can also be created using the annual and quarterly frequencies. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required