{"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"name":"python","version":"3.12.12","mimetype":"text/x-python","codemirror_mode":{"name":"ipython","version":3},"pygments_lexer":"ipython3","nbconvert_exporter":"python","file_extension":".py"},"kaggle":{"accelerator":"none","dataSources":[{"sourceId":38257,"databundleVersionId":4319132,"sourceType":"competition"}],"dockerImageVersionId":31259,"isInternetEnabled":true,"language":"python","sourceType":"notebook","isGpuEnabled":false}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"code","source":"import pyarrow.parquet as pq\nimport glob\nimport time\n\n# Đường dẫn file\nfile_pattern = \"/kaggle/input/icecube-neutrinos-in-deep-ice/train/batch_*.parquet\"\nfiles = glob.glob(file_pattern)\n\nprint(f\"Tìm thấy {len(files)} file. Đang đếm dòng bằng Metadata...\")\nstart_time = time.time()\ntotal_rows = 0\n\n# Vòng lặp siêu tốc: Chỉ đọc Header, không đọc nội dung\nfor f in files:\n    # pq.read_metadata chỉ đọc vài KB thông tin mô tả file\n    total_rows += pq.read_metadata(f).num_rows\n\nend_time = time.time()\n\nprint(\"-\" * 30)\nprint(f\"TỔNG SỐ DÒNG: {total_rows:,}\")\nprint(f\"Thời gian: {end_time - start_time:.2f} giây\")\nprint(\"-\" * 30)","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","trusted":true,"execution":{"iopub.status.busy":"2026-01-30T09:12:54.372800Z","iopub.execute_input":"2026-01-30T09:12:54.373155Z","iopub.status.idle":"2026-01-30T09:12:59.378339Z","shell.execute_reply.started":"2026-01-30T09:12:54.373109Z","shell.execute_reply":"2026-01-30T09:12:59.376298Z"}},"outputs":[],"execution_count":null},{"cell_type":"code","source":"","metadata":{"trusted":true,"execution":{"iopub.status.busy":"2026-01-30T09:04:18.756455Z","iopub.execute_input":"2026-01-30T09:04:18.756811Z","iopub.status.idle":"2026-01-30T09:04:19.917956Z","shell.execute_reply.started":"2026-01-30T09:04:18.756784Z","shell.execute_reply":"2026-01-30T09:04:19.917010Z"}},"outputs":[],"execution_count":null}]}