{ "cells": [ { "metadata": {}, "cell_type": "markdown", "source": "## 历史维修记录明细导出", "id": "cce28a5940abeee4" }, { "metadata": { "collapsed": true, "ExecuteTime": { "end_time": "2026-01-20T06:29:15.162331800Z", "start_time": "2026-01-20T06:25:58.865173100Z" } }, "cell_type": "code", "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ " 0%| | 0/1456 [00:00, 'Connection to rp.chezizhu.com timed out. (connect timeout=30)'))\n" ] }, { "name": "stderr", "output_type": "stream", "text": [ "C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 91%|█████████ | 1320/1456 [02:59<07:15, 3.20s/it]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 91%|█████████ | 1321/1456 [02:59<05:06, 2.27s/it]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 91%|█████████ | 1322/1456 [02:59<03:38, 1.63s/it]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 91%|█████████ | 1323/1456 [03:00<02:36, 1.18s/it]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 91%|█████████ | 1324/1456 [03:00<01:52, 1.17it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 91%|█████████ | 1325/1456 [03:00<01:23, 1.57it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 91%|█████████ | 1326/1456 [03:00<01:02, 2.06it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 91%|█████████ | 1327/1456 [03:00<00:48, 2.66it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 91%|█████████ | 1328/1456 [03:00<00:38, 3.30it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 91%|█████████▏| 1329/1456 [03:00<00:31, 4.01it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 91%|█████████▏| 1330/1456 [03:00<00:26, 4.67it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 91%|█████████▏| 1331/1456 [03:01<00:22, 5.55it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 91%|█████████▏| 1332/1456 [03:01<00:20, 6.05it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 92%|█████████▏| 1333/1456 [03:01<00:18, 6.62it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 92%|█████████▏| 1334/1456 [03:01<00:18, 6.74it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 92%|█████████▏| 1335/1456 [03:01<00:17, 6.79it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 92%|█████████▏| 1336/1456 [03:01<00:16, 7.47it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 92%|█████████▏| 1337/1456 [03:01<00:15, 7.60it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 92%|█████████▏| 1338/1456 [03:01<00:15, 7.74it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 92%|█████████▏| 1339/1456 [03:02<00:14, 7.86it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 92%|█████████▏| 1340/1456 [03:02<00:14, 7.89it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 92%|█████████▏| 1341/1456 [03:02<00:14, 8.08it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 92%|█████████▏| 1342/1456 [03:02<00:14, 7.69it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 92%|█████████▏| 1343/1456 [03:02<00:13, 8.10it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 92%|█████████▏| 1344/1456 [03:02<00:14, 7.99it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 92%|█████████▏| 1345/1456 [03:02<00:13, 8.36it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 92%|█████████▏| 1346/1456 [03:02<00:12, 8.60it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 93%|█████████▎| 1347/1456 [03:02<00:12, 8.82it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 93%|█████████▎| 1348/1456 [03:03<00:12, 8.86it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 93%|█████████▎| 1349/1456 [03:03<00:12, 8.58it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 93%|█████████▎| 1350/1456 [03:03<00:12, 8.59it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 93%|█████████▎| 1351/1456 [03:03<00:12, 8.36it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 93%|█████████▎| 1352/1456 [03:03<00:12, 8.53it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 93%|█████████▎| 1353/1456 [03:03<00:11, 8.65it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 93%|█████████▎| 1354/1456 [03:03<00:12, 8.47it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 93%|█████████▎| 1355/1456 [03:03<00:12, 7.97it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 93%|█████████▎| 1356/1456 [03:04<00:11, 8.43it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 93%|█████████▎| 1357/1456 [03:04<00:11, 8.73it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 93%|█████████▎| 1358/1456 [03:04<00:11, 8.40it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 93%|█████████▎| 1359/1456 [03:04<00:11, 8.78it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 93%|█████████▎| 1360/1456 [03:04<00:11, 8.50it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 93%|█████████▎| 1361/1456 [03:04<00:11, 8.47it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 94%|█████████▎| 1362/1456 [03:04<00:10, 8.67it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 94%|█████████▎| 1363/1456 [03:04<00:10, 8.54it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 94%|█████████▎| 1364/1456 [03:04<00:10, 8.80it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 94%|█████████▍| 1365/1456 [03:05<00:10, 8.86it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 94%|█████████▍| 1366/1456 [03:05<00:09, 9.04it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 94%|█████████▍| 1367/1456 [03:05<00:09, 9.17it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 94%|█████████▍| 1368/1456 [03:05<00:09, 9.32it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 94%|█████████▍| 1369/1456 [03:05<00:09, 8.85it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 94%|█████████▍| 1370/1456 [03:05<00:10, 8.51it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 94%|█████████▍| 1371/1456 [03:05<00:10, 8.14it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 94%|█████████▍| 1372/1456 [03:05<00:09, 8.41it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 94%|█████████▍| 1373/1456 [03:06<00:09, 8.42it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 94%|█████████▍| 1374/1456 [03:06<00:09, 8.75it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 94%|█████████▍| 1375/1456 [03:06<00:09, 8.81it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 95%|█████████▍| 1376/1456 [03:06<00:09, 8.79it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 95%|█████████▍| 1377/1456 [03:06<00:08, 9.03it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 95%|█████████▍| 1378/1456 [03:06<00:09, 8.59it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 95%|█████████▍| 1379/1456 [03:06<00:09, 8.55it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 95%|█████████▍| 1380/1456 [03:06<00:09, 8.23it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 95%|█████████▍| 1381/1456 [03:06<00:09, 8.11it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 95%|█████████▍| 1382/1456 [03:07<00:09, 7.87it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 95%|█████████▍| 1383/1456 [03:07<00:08, 8.14it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 95%|█████████▌| 1384/1456 [03:07<00:08, 8.01it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 95%|█████████▌| 1385/1456 [03:07<00:08, 8.21it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 95%|█████████▌| 1386/1456 [03:07<00:08, 8.60it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 95%|█████████▌| 1387/1456 [03:07<00:07, 8.88it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 95%|█████████▌| 1388/1456 [03:07<00:07, 9.00it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 95%|█████████▌| 1389/1456 [03:07<00:07, 9.11it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 95%|█████████▌| 1390/1456 [03:07<00:07, 9.18it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 96%|█████████▌| 1391/1456 [03:08<00:07, 8.66it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 96%|█████████▌| 1392/1456 [03:08<00:07, 8.47it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 96%|█████████▌| 1393/1456 [03:08<00:07, 8.31it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 96%|█████████▌| 1394/1456 [03:08<00:07, 8.38it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 96%|█████████▌| 1395/1456 [03:08<00:07, 7.86it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 96%|█████████▌| 1396/1456 [03:08<00:07, 7.66it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 96%|█████████▌| 1397/1456 [03:08<00:07, 7.97it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 96%|█████████▌| 1398/1456 [03:09<00:07, 7.41it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 96%|█████████▌| 1399/1456 [03:09<00:07, 7.77it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 96%|█████████▌| 1400/1456 [03:09<00:07, 7.99it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 96%|█████████▌| 1401/1456 [03:09<00:07, 7.84it/s]" ] }, { "name": "stdout", "output_type": "stream", "text": [ "\n", "✅ 已处理1400页,累计提取25336行数据\n" ] }, { "name": "stderr", "output_type": "stream", "text": [ "C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 96%|█████████▋| 1402/1456 [03:09<00:06, 8.20it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 96%|█████████▋| 1403/1456 [03:09<00:07, 7.51it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 96%|█████████▋| 1404/1456 [03:09<00:06, 7.61it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 96%|█████████▋| 1405/1456 [03:09<00:06, 7.70it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 97%|█████████▋| 1406/1456 [03:10<00:06, 7.92it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 97%|█████████▋| 1407/1456 [03:10<00:06, 7.63it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 97%|█████████▋| 1408/1456 [03:10<00:05, 8.10it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 97%|█████████▋| 1409/1456 [03:10<00:06, 7.57it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 97%|█████████▋| 1410/1456 [03:10<00:06, 7.65it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 97%|█████████▋| 1411/1456 [03:10<00:05, 7.71it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 97%|█████████▋| 1412/1456 [03:10<00:05, 8.09it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 97%|█████████▋| 1413/1456 [03:10<00:05, 8.15it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 97%|█████████▋| 1414/1456 [03:11<00:04, 8.40it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 97%|█████████▋| 1415/1456 [03:11<00:04, 8.29it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 97%|█████████▋| 1416/1456 [03:11<00:05, 7.66it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 97%|█████████▋| 1417/1456 [03:11<00:04, 7.96it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 97%|█████████▋| 1418/1456 [03:11<00:04, 8.41it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 97%|█████████▋| 1419/1456 [03:11<00:04, 8.34it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 98%|█████████▊| 1420/1456 [03:11<00:04, 8.03it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 98%|█████████▊| 1421/1456 [03:11<00:04, 7.93it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 98%|█████████▊| 1422/1456 [03:12<00:04, 7.76it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 98%|█████████▊| 1423/1456 [03:12<00:04, 7.85it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 98%|█████████▊| 1424/1456 [03:12<00:03, 8.03it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 98%|█████████▊| 1425/1456 [03:12<00:03, 7.82it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 98%|█████████▊| 1426/1456 [03:12<00:03, 7.85it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 98%|█████████▊| 1427/1456 [03:12<00:03, 7.50it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 98%|█████████▊| 1428/1456 [03:12<00:03, 7.76it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 98%|█████████▊| 1429/1456 [03:12<00:03, 8.13it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 98%|█████████▊| 1430/1456 [03:13<00:03, 8.01it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 98%|█████████▊| 1431/1456 [03:13<00:03, 8.14it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 98%|█████████▊| 1432/1456 [03:13<00:02, 8.05it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 98%|█████████▊| 1433/1456 [03:13<00:02, 8.20it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 98%|█████████▊| 1434/1456 [03:13<00:02, 8.40it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 99%|█████████▊| 1435/1456 [03:13<00:02, 8.63it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 99%|█████████▊| 1436/1456 [03:13<00:02, 8.44it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 99%|█████████▊| 1437/1456 [03:13<00:02, 8.77it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 99%|█████████▉| 1438/1456 [03:13<00:02, 8.92it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 99%|█████████▉| 1439/1456 [03:14<00:02, 8.37it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 99%|█████████▉| 1440/1456 [03:14<00:01, 8.60it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 99%|█████████▉| 1441/1456 [03:14<00:01, 8.72it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 99%|█████████▉| 1442/1456 [03:14<00:01, 8.87it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 99%|█████████▉| 1443/1456 [03:14<00:01, 8.68it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 99%|█████████▉| 1444/1456 [03:14<00:01, 8.87it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 99%|█████████▉| 1445/1456 [03:14<00:01, 8.82it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 99%|█████████▉| 1446/1456 [03:14<00:01, 8.73it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 99%|█████████▉| 1447/1456 [03:15<00:01, 8.94it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", " 99%|█████████▉| 1448/1456 [03:15<00:00, 8.89it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", "100%|█████████▉| 1449/1456 [03:15<00:00, 9.03it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", "100%|█████████▉| 1450/1456 [03:15<00:00, 8.02it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", "100%|█████████▉| 1451/1456 [03:15<00:00, 7.95it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", "100%|█████████▉| 1452/1456 [03:15<00:00, 7.87it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", "100%|█████████▉| 1453/1456 [03:15<00:00, 8.29it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", "100%|█████████▉| 1454/1456 [03:15<00:00, 8.22it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", "100%|█████████▉| 1455/1456 [03:15<00:00, 8.36it/s]C:\\Users\\hp_z66\\AppData\\Local\\Temp\\ipykernel_7820\\1529072531.py:110: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", "100%|██████████| 1456/1456 [03:16<00:00, 7.42it/s]\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "\n", "🎉 数据提取完成!共提取 26332 行有效数据\n", "\n", "前10行预览:\n", " 门店 订单编号 产品类型 产品名称 数量 销售金额\n", "交城东环路店 KF_0040_170820005 发动机油 嘉实多嘉力 (SL 10W-40) 1.00 109\n", "交城东环路店 KF_0040_170820005 机油滤芯 德国马勒机滤 1.00 45\n", "交城东环路店 KF_0040_170820027 发动机油 嘉实多嘉护专享 (合成 SN 5W-30) 1.00 156\n", "交城东环路店 KF_0040_170820027 机油滤芯 耐诺思机滤 1.00 25\n", "交城东环路店 KF_0040_170916052 手动变速箱油 PDK手动变速箱油 4.00 260\n", "交城东环路店 KF_0040_171031003 发动机油 嘉实多嘉护专享 (合成 SN 10W-40) 1.00 148\n", "交城东环路店 KF_0040_171031003 机油滤芯 德国马勒机滤 1.00 45\n", "交城东环路店 KF_0040_171031003 空气滤芯 德国马勒空滤 1.00 41\n", "交城东环路店 KF_0040_171031003 空调滤芯 德国马勒空调滤芯 1.00 45\n", "交城东环路店 KF_0040_171129007 发动机油 嘉实多新启停保 (全合成 SN 5W-30) 1.00 308\n" ] } ], "execution_count": 18, "source": [ "import requests\n", "from bs4 import BeautifulSoup\n", "import pandas as pd\n", "import warnings\n", "from tqdm import tqdm\n", "\n", "warnings.filterwarnings('ignore', message='Unverified HTTPS request')\n", "\n", "# 1. 保持原请求逻辑不变(补充缺失的headers变量名避免冲突)\n", "request_headers = {\n", " 'Accept': 'text/html, */*; q=0.01',\n", " 'Accept-Language': 'zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6',\n", " 'Connection': 'keep-alive',\n", " 'Referer': 'http://rp.chezizhu.com/ReportServer?reportlet=czz/storage/prod_sale_dtl_jm.cpt&servicer_id=HyBKFgc2uCNtqs59aDZhc2&hideexport=true&database=chezizhu_14',\n", " 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36 Edg/143.0.0.0',\n", " 'X-Requested-With': 'XMLHttpRequest',\n", "}\n", "\n", "df_final_result = pd.DataFrame() # 初始化最终结果DataFrame\n", "\n", "# 2. 修正循环范围(range左闭右开,需包含1456页)\n", "for i in tqdm(range(1, 1457)):\n", " params = {\n", " '_': '1768880480608',\n", " '__boxModel__': 'true',\n", " 'op': 'page_content',\n", " 'sessionID': '95782',\n", " 'pn': i,\n", " '__fit__': 'false',\n", " }\n", "\n", " try:\n", " response = requests.get(\n", " 'http://rp.chezizhu.com/ReportServer',\n", " params=params,\n", " headers=request_headers,\n", " verify=False,\n", " timeout=30 # 增加超时保护\n", " )\n", " response.raise_for_status() # 抛出HTTP错误\n", " html = response.text\n", "\n", " soup = BeautifulSoup(html, 'html.parser')\n", " target_table = soup.find('table', class_='x-table')\n", "\n", " if not target_table:\n", " print(f\"\\n⚠️ 第{i}页未找到数据表格,跳过\")\n", " continue\n", "\n", " # 3. 提取表头(tridx=2的行)\n", " header_tr = target_table.find('tr', tridx='2')\n", " if not header_tr:\n", " print(f\"\\n⚠️ 第{i}页未找到表头,跳过\")\n", " continue\n", " table_headers = [td.get_text(strip=True) for td in header_tr.find_all('td')]\n", "\n", " # 4. 初始化数据存储(处理rowspan跨行单元格)\n", " page_data = []\n", " rowspan_cache = {} # key:列索引, value:{'value':单元格值, 'remaining':剩余跨行数}\n", "\n", " # 5. 遍历数据行(tridx从3开始,跳过标题、表头、总计行)\n", " for tr in target_table.find_all('tr'):\n", " tridx = tr.get('tridx', '')\n", " if not tridx.isdigit():\n", " continue\n", " tridx_int = int(tridx)\n", " if tridx_int < 3 or tridx_int == 21: # 跳过表头(tridx=2)和总计行(tridx=21)\n", " continue\n", "\n", " current_row = [''] * len(table_headers)\n", " td_index = 0 # 记录当前处理的在该行的索引\n", "\n", " # 先填充跨行缓存中的数据\n", " for col_idx, cache in list(rowspan_cache.items()):\n", " current_row[col_idx] = cache['value']\n", " cache['remaining'] -= 1\n", " if cache['remaining'] == 0:\n", " del rowspan_cache[col_idx]\n", "\n", " # 处理当前行的\n", " for td in tr.find_all('td'):\n", " # 找到当前对应的列索引(跳过已被跨行缓存填充的列)\n", " while td_index < len(table_headers) and current_row[td_index] != '':\n", " td_index += 1\n", " if td_index >= len(table_headers):\n", " break\n", "\n", " # 提取单元格值(处理空格和特殊字符)\n", " cell_value = td.get_text(strip=True).replace('\\xa0', ' ')\n", " current_row[td_index] = cell_value\n", "\n", " # 处理跨行单元格(rowspan)\n", " rowspan = int(td.get('rowspan', 1))\n", " if rowspan > 1:\n", " rowspan_cache[td_index] = {\n", " 'value': cell_value,\n", " 'remaining': rowspan - 1\n", " }\n", "\n", " td_index += 1\n", "\n", " page_data.append(current_row)\n", "\n", " # 6. 转换为DataFrame并处理空值填充(门店、订单编号、产品类型)\n", " df_page = pd.DataFrame(page_data, columns=table_headers)\n", " fill_fields = ['门店', '订单编号', '产品类型']\n", " for field in fill_fields:\n", " if field in df_page.columns:\n", " df_page[field] = df_page[field].replace('', pd.NA)\n", " df_page[field] = df_page[field].fillna(method='ffill') # 向下填充空值\n", "\n", " # 7. 清理无效行\n", " df_page = df_page.dropna(subset=['产品名称', '数量']) # 删除无产品名称和数量的无效行\n", " df_page = df_page.reset_index(drop=True)\n", "\n", " # 8. 修正DataFrame合并方式(原代码语法错误)\n", " df_final_result = pd.concat([df_final_result, df_page], ignore_index=True)\n", "\n", " # 进度提示\n", " if i % 100 == 0:\n", " print(f\"\\n✅ 已处理{i}页,累计提取{len(df_final_result)}行数据\")\n", "\n", " except Exception as e:\n", " print(f\"\\n❌ 第{i}页处理失败:{str(e)}\")\n", " continue\n", "\n", "# 9. 保存最终结果(修正文件名缺失\"门\"字)\n", "output_path = '门店非快销产品销售明细_完整解析版.csv'\n", "# 删除任意列中包含“总计”的行(不区分大小写,但中文一般无大小写)\n", "df_final_result = df_final_result[~df_final_result.astype(str).apply(lambda x: x.str.contains('总计', na=False)).any(axis=1)]\n", "df_final_result = df_final_result[~df_final_result.astype(str).apply(lambda x: x.str.contains('小计', na=False)).any(axis=1)]\n", "df_final_result.to_csv(output_path, index=False, encoding='utf-8-sig')\n", "\n", "# 验证结果\n", "print(f\"\\n🎉 数据提取完成!共提取 {len(df_final_result)} 行有效数据\")\n", "if len(df_final_result) > 0:\n", " print(\"\\n前10行预览:\")\n", " preview_cols = ['门店', '订单编号', '产品类型', '产品名称', '数量', '销售金额']\n", " preview_cols = [col for col in preview_cols if col in df_final_result.columns]\n", " print(df_final_result[preview_cols].head(10).to_string(index=False))" ], "id": "initial_id" }, { "metadata": {}, "cell_type": "markdown", "source": "# 订单明细", "id": "71b7f9494526fe15" }, { "metadata": { "ExecuteTime": { "end_time": "2026-01-20T08:31:56.350530600Z", "start_time": "2026-01-20T08:31:56.207655Z" } }, "cell_type": "code", "source": [ "import requests\n", "\n", "df = pd.read_csv(\"D:\\Idea Project\\F6+宜搭+其它(1)\\张阳脚本\\竞品系统数据导出\\店非快销产品销售明细_本地解析版.csv\")\n", "\n", "for index, row in df.iterrows():\n", "\n", " headers = {\n", " 'Accept': 'text/html, */*; q=0.01',\n", " 'Accept-Language': 'zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6',\n", " 'Connection': 'keep-alive',\n", " 'Referer': 'http://rp.chezizhu.com/ReportServer?reportlet=/czz/order/order.cpt',\n", " 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36 Edg/144.0.0.0',\n", " 'X-Requested-With': 'XMLHttpRequest',\n", " }\n", "\n", " params = {\n", " '_': '1768897861672',\n", " '__boxModel__': 'true',\n", " 'op': 'page_content',\n", " 'sessionID': '23353',\n", " 'pn': '1',\n", " '__fit__': 'false',\n", " }\n", "\n", " response = requests.get('http://rp.chezizhu.com/ReportServer', params=params, headers=headers, verify=False)\n", " response.text" ], "id": "9c1f99868e6f0bed", "outputs": [ { "data": { "text/plain": [ "'
订单详细情况
订单编号:KF_0040_170820005服务类型:到店工单状态:已完成
客户姓名:宋先生客户电话:13453880214订单状态:已回访
车型款式:大众   国产   捷达   1.6L   2013车牌号码:晋A92F13联系地址:
下单时间:2017-08-20 09:08:55预约时间:2017-08-22 09:45-10:15完成时间:2017-08-22 11:40:44
产品总额:154.00工时费用:186.00上门费用:0.00
折扣原因:常规保养【服务费 5折】,清洗发动机舱【服务费 减到0元】折扣金额:93.00实收金额:247.00
服务门店:交城东环路店技师:王耀龙,雷文俊下单人:
下单方式:tel订单来源:渠道来源:czz
评价情况:好评评价内容:挺好的,服务也到位,老板还赠送了一个香膏,以后会常去
回访满意度:满意问题件:HfDmktoNYf232fy12WewsY
备注:开业活动
保险公司:其他保险到期:2018-05-17年检日期:2019-05-16
购车日期:2013-05-16服务日期:2017-08-22服务里程:70478
车架号:下次服务日期:2017-12-11下次服务里程:75478
消费项目
套餐服务项目产品名称产品型号数量规格单位单价产品小计工时合计
非套餐清洗发动机舱068.0068.00
常规保养嘉实多嘉力 (SL 10W-40)JY012-41.004升/桶109.0010950.00204.00
德国马勒机滤 OC 119606012200011.001个/盒45.0045
手工免拆清洗节气门068.0068.00
总计154186340
优惠情况
车自主 申请折扣常规保养【服务费 5折】1730062025.00
车自主 常规优惠清洗发动机舱【服务费 减到0元】1780005368.00
总计93
结算情况
刷卡-银联POS2 信用卡247.00
总计247
'" ] }, "execution_count": 33, "metadata": {}, "output_type": "execute_result" } ], "execution_count": 33 } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 2 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython2", "version": "2.7.6" } }, "nbformat": 4, "nbformat_minor": 5 }