pyarrow.csv.InvalidRow

class pyarrow.csv.InvalidRow(expected_columns, actual_columns, number, text)

Bases: _InvalidRow

Description of an invalid row in a CSV file.

Parameters:
expected_columnsint

The expected number of columns in the row.

actual_columnsint

The actual number of columns in the row.

numberint or None

The physical row number if known, otherwise None.

textstr

The contents of the row.

__init__(*args, **kwargs)

Methods

__init__(*args, **kwargs)

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.

Attributes

actual_columns

Alias for field number 1

expected_columns

Alias for field number 0

number

Alias for field number 2

text

Alias for field number 3

actual_columns

Alias for field number 1

count(value, /)

Return number of occurrences of value.

expected_columns

Alias for field number 0

index(value, start=0, stop=sys.maxsize, /)

Return first index of value.

Raises ValueError if the value is not present.

number

Alias for field number 2

text

Alias for field number 3