Objectiv Documentation LogoObjectiv Documentation Logo
TrackingModelingTaxonomy
GitHubSlackTwitterObjectiv.io
  • Introduction
  • Get started in your notebook
  • Open model hub
  • Bach
    • Core Concepts
    • Usage
    • Supported Data Stores
    • API reference
      • DataFrame
      • Series
        • AbstractNumeric
        • Boolean
        • Date
        • Dict
        • Float64
        • Int64
        • Json
        • JsonPostgres
        • List
        • String
        • Time
        • Timedelta
        • Timestamp
        • Uuid
        • agg
        • aggregate
        • all_values
        • any_value
        • append
        • apply_func
        • array
        • astype
        • base_node
        • copy
        • count
        • describe
        • drop_duplicates
        • dropna
        • dtype
        • exists
        • fillna
        • from_value
        • get_db_dtype
        • group_by
        • head
        • index
        • instance_dtype
        • is_materialized
        • isin
        • isnull
        • materialize
        • max
        • Series
        • median
        • min
        • mode
        • name
        • notnull
        • nunique
        • order_by
        • reset_index
        • sort_by_series
        • sort_index
        • sort_values
        • to_frame
        • to_numpy
        • to_pandas
        • unique
        • unstack
        • value
        • value_counts
        • view_sql
        • window_cume_dist
        • window_dense_rank
        • window_first_value
        • window_lag
        • window_last_value
        • window_lead
        • window_nth_value
        • window_ntile
        • window_percent_rank
        • window_rank
        • window_row_number
  • Example notebooks
  • 🏠
  • Modeling
  • Bach
  • API reference
  • Series
  • window_lead

bach.Series.window_lead

window_lead​

(offset=1, default=None, window=None)

​[source]

Returns value evaluated at the row that is offset rows after the current row within the window.

If there is no such row, instead returns default (which must be of the same type as value). Both offset and default are evaluated with respect to the current row. :param offset: The amount of rows to look forward, default 1 :param default: The value to return if no value is available, can be a constant value or Series. Defaults to None

  • Suggest an edit
  • Get help on Slack
  • Request feature or report issue
Previous
window_last_value
Next
window_nth_value
  • window_lead
  • Privacy Policy
  • Cookies
Copyright © 2022 Objectiv