Skip to content

Commit

Permalink
period to every and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
marcandre259 authored and stinodego committed Aug 25, 2023
1 parent 21e8cf0 commit 09800c6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions crates/polars-time/src/upsample.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pub trait PolarsUpsample {
/// * `every` - interval will start 'every' duration
/// * `offset` - change the start of the date_range by this offset.
///
/// The `period` and `offset` arguments are created with
/// The `every` and `offset` arguments are created with
/// the following string language:
/// - 1ns (1 nanosecond)
/// - 1us (1 microsecond)
Expand All @@ -33,11 +33,14 @@ pub trait PolarsUpsample {
/// - 1q (1 calendar quarter)
/// - 1y (1 calendar year)
/// - 1i (1 index count)
///
/// Or combine them:
/// "3d12h4m25s" # 3 days, 12 hours, 4 minutes, and 25 seconds
///
/// Suffix with `"_saturating"` to saturate dates with days too
/// large for their month to the last day of the month (e.g.
/// 2022-02-29 to 2022-02-28).
///
/// By "calendar day", we mean the corresponding time on the next
/// day (which may not be 24 hours, depending on daylight savings).
/// Similarly for "calendar week", "calendar month", "calendar quarter",
Expand All @@ -59,7 +62,7 @@ pub trait PolarsUpsample {
/// * `every` - interval will start 'every' duration
/// * `offset` - change the start of the date_range by this offset.
///
/// The `period` and `offset` arguments are created with
/// The `every` and `offset` arguments are created with
/// the following string language:
/// - 1ns (1 nanosecond)
/// - 1us (1 microsecond)
Expand All @@ -73,11 +76,14 @@ pub trait PolarsUpsample {
/// - 1q (1 calendar quarter)
/// - 1y (1 calendar year)
/// - 1i (1 index count)
///
/// Or combine them:
/// "3d12h4m25s" # 3 days, 12 hours, 4 minutes, and 25 seconds
///
/// Suffix with `"_saturating"` to saturate dates with days too
/// large for their month to the last day of the month (e.g.
/// 2022-02-29 to 2022-02-28).
///
/// By "calendar day", we mean the corresponding time on the next
/// day (which may not be 24 hours, depending on daylight savings).
/// Similarly for "calendar week", "calendar month", "calendar quarter",
Expand Down

0 comments on commit 09800c6

Please sign in to comment.