{"record":{"id":"8852d914f94803c0","repo":"pathwaycom/pathway","slug":"interpolate-invalid-mode-only-interpolate-linear","errorCode":null,"errorMessage":"interpolate: Invalid mode. Only Interpolate.LINEAR is currently available.","messagePattern":"interpolate: Invalid mode\\. Only Interpolate\\.LINEAR is currently available\\.","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"python/pathway/stdlib/statistical/_interpolate.py","lineNumber":105,"sourceCode":"    ... 2         |          |\n    ... 3         | 3        |\n    ... 4         |          |\n    ... 5         |          |\n    ... 6         | 6        | 60\n    ... ''')\n    >>> table = table.interpolate(pw.this.timestamp, pw.this.values_a, pw.this.values_b)\n    >>> pw.debug.compute_and_print(table, include_id=False)\n    timestamp | values_a | values_b\n    1         | 1.0      | 10.0\n    2         | 2.0      | 20.0\n    3         | 3.0      | 30.0\n    4         | 4.0      | 40.0\n    5         | 5.0      | 50.0\n    6         | 6.0      | 60.0\n    \"\"\"\n\n    if mode != InterpolateMode.LINEAR:\n        raise ValueError(\n            \"\"\"interpolate: Invalid mode. Only Interpolate.LINEAR is currently available.\"\"\"\n        )\n\n    if isinstance(timestamp, pw.ColumnReference):\n        timestamp = self[timestamp]\n    else:\n        if isinstance(timestamp, str):\n            raise ValueError(\n                \"Table.interpolate(): Invalid column reference for the parameter timestamp,\"\n                + f\" found a string. Did you mean this.{timestamp} instead of {repr(timestamp)}?\"\n            )\n        raise ValueError(\n            \"Table.interpolate(): Invalid column reference for the parameter timestamp.\"\n        )\n\n    ordered_table = self.sort(key=timestamp)\n\n    table = self","sourceCodeStart":87,"sourceCodeEnd":123,"githubUrl":"https://github.com/pathwaycom/pathway/blob/fa2f74a4649b7c5908690cf60137263d8d80de5f/python/pathway/stdlib/statistical/_interpolate.py#L87-L123","documentation":"Error \"interpolate: Invalid mode. Only Interpolate.LINEAR is currently available.\" thrown in pathwaycom/pathway.","triggerScenarios":"Thrown at python/pathway/stdlib/statistical/_interpolate.py:105 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use mode=Interpolate.LINEAR; other interpolation modes are not yet supported."],"exampleFix":"t.interpolate(this.ts, this.value, mode=pw.stdlib.statistical.Interpolate.LINEAR)","handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"fa2f74a4649b7c5908690cf60137263d8d80de5f","analyzedAt":"2026-08-15T01:48:17.006Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}