Function readAvro

  • Read into a DataFrame from an avro file.

    Parameters

    • pathOrBody: string | Buffer<ArrayBufferLike>
    • Optionaloptions: Partial<ReadAvroOptions>
      • columns

        Columns to select. Accepts a list of column names.

      • projection

        Indices of columns to select. Note that column indices start at zero.

      • nRows

        Stop reading from avro file after reading nRows.

    Returns pl.DataFrame