pathwaycom/pathway · error · ValueError

Table.interpolate(): Invalid column reference for the parame

Error message

Table.interpolate(): Invalid column reference for the parameter value.

What it means

Error "Table.interpolate(): Invalid column reference for the parameter value." thrown in pathwaycom/pathway.

Source

Thrown at python/pathway/stdlib/statistical/_interpolate.py:134

            )
        raise ValueError(
            "Table.interpolate(): Invalid column reference for the parameter timestamp."
        )

    ordered_table = self.sort(key=timestamp)

    table = self

    for value in values:
        if isinstance(value, pw.ColumnReference):
            value = self[value]
        else:
            if isinstance(value, str):
                raise ValueError(
                    "Table.interpolate(): Invalid column reference for the parameter value,"
                    + f" found a string. Did you mean this.{value} instead of {repr(value)}?"
                )
            raise ValueError(
                "Table.interpolate(): Invalid column reference for the parameter value."
            )
        assert timestamp.name != value.name

        sorted_timestamp_value = ordered_table + self.select(
            timestamp=timestamp, value=value
        )

        table_with_prev_next = _retrieve_prev_next_values(sorted_timestamp_value)

        interpolated_table = table_with_prev_next + sorted_timestamp_value

        prev_tab = interpolated_table.ix(pw.this.prev_value, optional=True)
        next_tab = interpolated_table.ix(pw.this.next_value, optional=True)

        interpolated_table = interpolated_table.with_columns(
            interpolated_value=pw.coalesce(
                pw.this.value,

View on GitHub (pinned to fa2f74a464)

Solutions

  1. Pass a ColumnReference for the value parameter of Table.interpolate().

Example fix

t.interpolate(this.timestamp, this.value)

When it happens

Trigger: Thrown at python/pathway/stdlib/statistical/_interpolate.py:134 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of pathwaycom/pathway@fa2f74a464 (2026-08-15). Data as JSON: /api/errors/39146481bb628f95. Report an issue: GitHub.