{"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"name":"python","version":"3.10.14","mimetype":"text/x-python","codemirror_mode":{"name":"ipython","version":3},"pygments_lexer":"ipython3","nbconvert_exporter":"python","file_extension":".py"},"kaggle":{"accelerator":"none","dataSources":[{"sourceId":84795,"databundleVersionId":10462807,"sourceType":"competition"}],"dockerImageVersionId":30804,"isInternetEnabled":true,"language":"python","sourceType":"notebook","isGpuEnabled":false}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"code","source":"! rm -rf /kaggle/working/*\n! unzip -qq /kaggle/input/konwinski-prize/data.a_zip -d /kaggle/working/","metadata":{"trusted":true,"execution":{"iopub.status.busy":"2024-12-12T16:37:55.490218Z","iopub.execute_input":"2024-12-12T16:37:55.490655Z","iopub.status.idle":"2024-12-12T16:37:59.878556Z","shell.execute_reply.started":"2024-12-12T16:37:55.490619Z","shell.execute_reply":"2024-12-12T16:37:59.876975Z"}},"outputs":[],"execution_count":null},{"cell_type":"code","source":"! ls -lsh /kaggle/working/data","metadata":{"trusted":true,"execution":{"iopub.status.busy":"2024-12-12T16:38:55.914104Z","iopub.execute_input":"2024-12-12T16:38:55.914553Z","iopub.status.idle":"2024-12-12T16:38:57.028251Z","shell.execute_reply.started":"2024-12-12T16:38:55.914518Z","shell.execute_reply":"2024-12-12T16:38:57.026934Z"}},"outputs":[],"execution_count":null},{"cell_type":"code","source":"import pandas as pd\ndata = pd.read_parquet(\"/kaggle/working/data/data.parquet\")\ndata.shape","metadata":{"trusted":true,"execution":{"iopub.status.busy":"2024-12-12T17:01:44.903941Z","iopub.execute_input":"2024-12-12T17:01:44.904396Z","iopub.status.idle":"2024-12-12T17:01:44.929621Z","shell.execute_reply.started":"2024-12-12T17:01:44.90436Z","shell.execute_reply":"2024-12-12T17:01:44.928087Z"}},"outputs":[],"execution_count":null},{"cell_type":"code","source":"from termcolor import cprint\n\ncolors = [\"red\", \"green\", \"yellow\", \"blue\", \"magenta\", \"cyan\", \"grey\", \"light_red\", \"light_green\", \"light_yellow\"]\n\nfor record_num, (_, row) in enumerate(data.iterrows(), start=1):\n    cprint(f\"Record Number: {record_num}\", \"white\", attrs=[\"bold\", \"underline\"])\n    for idx, (key, value) in enumerate(row.items()):\n        color = colors[idx % len(colors)]\n        cprint(f\"\\n{key.replace('_', ' ').title()}: \", color, attrs=[\"bold\"], end=\"\")\n        cprint(value, color)\n    print(\"\\n\"+\"=\"*75+\"\\n\")","metadata":{"trusted":true,"execution":{"iopub.status.busy":"2024-12-12T17:00:02.122301Z","iopub.execute_input":"2024-12-12T17:00:02.123031Z","iopub.status.idle":"2024-12-12T17:00:02.157545Z","shell.execute_reply.started":"2024-12-12T17:00:02.122972Z","shell.execute_reply":"2024-12-12T17:00:02.154311Z"}},"outputs":[],"execution_count":null},{"cell_type":"code","source":"","metadata":{"trusted":true},"outputs":[],"execution_count":null}]}