{"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"name":"python","version":"3.10.13","mimetype":"text/x-python","codemirror_mode":{"name":"ipython","version":3},"pygments_lexer":"ipython3","nbconvert_exporter":"python","file_extension":".py"},"kaggle":{"accelerator":"none","dataSources":[{"sourceId":59575,"databundleVersionId":8060720,"sourceType":"competition"}],"dockerImageVersionId":30698,"isInternetEnabled":false,"language":"python","sourceType":"notebook","isGpuEnabled":false}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"markdown","source":"Issue has been resolved as described here: https://www.kaggle.com/competitions/uspto-explainable-ai/discussion/498023","metadata":{}},{"cell_type":"code","source":"# This submission isn't valid. I have no idea why. \n# Any ideas would be greatly appreciated.","metadata":{},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"import polars as pl","metadata":{},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"test = pl.read_csv(\"/kaggle/input/uspto-explainable-ai/test.csv\")","metadata":{"execution":{"iopub.status.busy":"2024-04-26T00:16:33.694160Z","iopub.execute_input":"2024-04-26T00:16:33.694493Z","iopub.status.idle":"2024-04-26T00:16:33.790041Z","shell.execute_reply.started":"2024-04-26T00:16:33.694464Z","shell.execute_reply":"2024-04-26T00:16:33.789187Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"queries = pl.DataFrame([\"ti:device\"]*test.shape[0], schema=[\"query\"])\nsubmission = pl.concat([pl.DataFrame(test[:,\"publication_number\"]), queries], how=\"horizontal\")\nsubmission.write_csv(\"submission.csv\")","metadata":{"execution":{"iopub.status.busy":"2024-04-26T00:16:33.791291Z","iopub.execute_input":"2024-04-26T00:16:33.791752Z","iopub.status.idle":"2024-04-26T00:16:33.802428Z","shell.execute_reply.started":"2024-04-26T00:16:33.791724Z","shell.execute_reply":"2024-04-26T00:16:33.801473Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"submission.head()","metadata":{"execution":{"iopub.status.busy":"2024-04-26T00:16:33.805248Z","iopub.execute_input":"2024-04-26T00:16:33.805988Z","iopub.status.idle":"2024-04-26T00:16:33.815527Z","shell.execute_reply.started":"2024-04-26T00:16:33.805942Z","shell.execute_reply":"2024-04-26T00:16:33.814749Z"},"trusted":true},"execution_count":null,"outputs":[]}]}