Skip to main content
Ctrl+K
PyFlink 1.20+vvr.11.7.dev0 documentation - Home PyFlink 1.20+vvr.11.7.dev0 documentation - Home
  • API Reference
  • Examples
  • API Reference
  • Examples

Section Navigation

  • PyFlink Table
  • PyFlink DataStream
  • PyFlink DataFrame
    • DataFrame
    • DataFrame Creation
    • Input/Output
    • SQL
    • DataType
    • User Defined Functions
    • Configuration
    • GPU Support
    • AI / LLM
  • PyFlink Common
  • API Reference
  • PyFlink DataFrame
  • DataFrame
  • pyflink.dataframe.dataframe.DataFrame.offset

pyflink.dataframe.dataframe.DataFrame.offset#

DataFrame.offset(n: int) → DataFrame[source]#

Skip the first n rows of the DataFrame.

This is a lazy transformation that returns a new DataFrame.

Parameters:

n – The number of rows to skip. Must be non-negative.

Returns:

A new DataFrame with the first n rows skipped.

Example:

>>> df = pf.from_records([(1,), (2,), (3,)], schema=["a"])
>>> df.offset(1).limit(2).collect()
[Row(a=2), Row(a=3)]

previous

pyflink.dataframe.dataframe.DataFrame.limit

next

pyflink.dataframe.dataframe.DataFrame.head

On this page
  • DataFrame.offset()

This Page

  • Show Source

Created using Sphinx 7.4.7.

Built with the PyData Sphinx Theme 0.16.1.