Skip to content

Add Support for Skipping Initial Lines in CSV Parsing #496

@Sufiyan-kryptos

Description

@Sufiyan-kryptos

Currently, our CSV parsing using csvtojson does not support skipping initial lines that contain metadata or descriptions before the actual transaction data. Some CSV files include informational headers before the structured data begins, leading to incorrect parsing results.

Proposed Solution :

  • Introduce a configurable option to skip a fixed number of lines before processing the actual data.

Acceptance Criteria :

  • Add a parameter (e.g., skipLines) to define the number of lines to skip.
  • Ensure the function correctly handles CSVs with metadata before actual transactions.
  • Write tests to verify that rows are parsed correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions