Skip to content

InvalidSuffixesError(left, right) Source

Bases: NumdaplotError

Raised when a JoinSuffixes has an empty suffix, or the same suffix on both sides.

Either would leave two columns of a join with the same name.

Added in version 0.1.0

Parameters:

  • left (str)

    The suffix of the columns of the joined Table.

  • right (str)

    The suffix of the columns of the other Table.

Attributes:

  • left

    The suffix of the columns of the joined Table.

  • right

    The suffix of the columns of the other Table.

Examples:

import numdaplot as ndp

try:
    ndp.JoinSuffixes(left="_2025", right="_2025")
except ndp.InvalidSuffixesError as error:
    print(error)
# Expected two different non-empty suffixes, got '_2025' and '_2025'.