{
  "id": 543342,
  "title": "Notebook threw exception error",
  "url": "/competitions/jane-street-real-time-market-data-forecasting/discussion/543342",
  "author_name": "",
  "post_date": "2024-10-30T02:44:06.467093Z",
  "votes": null,
  "comment_count": 2,
  "views": 0,
  "content": "<p>So I'm getting the error above, and all that I can think of is maybe I accidently changed </p>\n<p>def predict(test: pl.DataFrame, lags: pl.DataFrame | None) -&gt; pl.DataFrame | pd.DataFrame:</p>\n<p>to </p>\n<p>def predict(test: pd.DataFrame, lags: pd.DataFrame | None) -&gt; pl.DataFrame | pd.DataFrame:</p>\n<p>can someone tell me if this would invoke the error? Thank you</p>",
  "messages": [
    {
      "id": "3031708",
      "postDate": "10/30/2024 02:44:06",
      "content": "<p>So I'm getting the error above, and all that I can think of is maybe I accidently changed </p>\n<p>def predict(test: pl.DataFrame, lags: pl.DataFrame | None) -&gt; pl.DataFrame | pd.DataFrame:</p>\n<p>to </p>\n<p>def predict(test: pd.DataFrame, lags: pd.DataFrame | None) -&gt; pl.DataFrame | pd.DataFrame:</p>\n<p>can someone tell me if this would invoke the error? Thank you</p>",
      "rawMarkdown": "So I'm getting the error above, and all that I can think of is maybe I accidently changed \n\ndef predict(test: pl.DataFrame, lags: pl.DataFrame | None) -> pl.DataFrame | pd.DataFrame:\n\nto \n\ndef predict(test: pd.DataFrame, lags: pd.DataFrame | None) -> pl.DataFrame | pd.DataFrame:\n\ncan someone tell me if this would invoke the error? Thank you",
      "votes": null
    },
    {
      "id": "3031782",
      "postDate": "10/30/2024 05:25:18",
      "content": "<p>The predict function has some bug, it's not accepting pandas dataframe.<br>\nI think your error is coming from the similar place. </p>\n<p>However, as a suggestion, the predict function is provided by official staff. You can't change the datatype of input parameters, since they would be passing polars df to predict function and you'll be expecting pandas df. </p>",
      "rawMarkdown": "The predict function has some bug, it's not accepting pandas dataframe.\nI think your error is coming from the similar place. \n\nHowever, as a suggestion, the predict function is provided by official staff. You can't change the datatype of input parameters, since they would be passing polars df to predict function and you'll be expecting pandas df.",
      "votes": null
    },
    {
      "id": "3031857",
      "postDate": "10/30/2024 07:59:48",
      "content": "<p>Oh thats why, thank you so much</p>",
      "rawMarkdown": "Oh thats why, thank you so much",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 3031782,
      "author_name": "jayshrivastava",
      "author_url": "",
      "post_date": "10/30/2024 05:25:18",
      "content": "<p>The predict function has some bug, it's not accepting pandas dataframe.<br>\nI think your error is coming from the similar place. </p>\n<p>However, as a suggestion, the predict function is provided by official staff. You can't change the datatype of input parameters, since they would be passing polars df to predict function and you'll be expecting pandas df. </p>",
      "votes": null,
      "replies": [
        {
          "id": 3031857,
          "author_name": "rivuletnriver",
          "author_url": "",
          "post_date": "10/30/2024 07:59:48",
          "content": "<p>Oh thats why, thank you so much</p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "3031708": "So I'm getting the error above, and all that I can think of is maybe I accidently changed \n\ndef predict(test: pl.DataFrame, lags: pl.DataFrame | None) -> pl.DataFrame | pd.DataFrame:\n\nto \n\ndef predict(test: pd.DataFrame, lags: pd.DataFrame | None) -> pl.DataFrame | pd.DataFrame:\n\ncan someone tell me if this would invoke the error? Thank you",
    "3031782": "The predict function has some bug, it's not accepting pandas dataframe.\nI think your error is coming from the similar place. \n\nHowever, as a suggestion, the predict function is provided by official staff. You can't change the datatype of input parameters, since they would be passing polars df to predict function and you'll be expecting pandas df.",
    "3031857": "Oh thats why, thank you so much"
  },
  "source": "meta"
}