File size: 9,043 Bytes
d37eeb7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 4,
   "id": "bd34c12a-3898-4399-805f-3003da4a26ec",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "        id     filename    mimetype extension  width  height rating  \\\n",
      "0  8349918  8349918.jpg  image/jpeg       jpg   6912    3888      g   \n",
      "1  8349917  8349917.jpg  image/jpeg       jpg   1488    1366      g   \n",
      "2  8349916  8349916.png   image/png       png   3072    4096      s   \n",
      "3  8349915  8349915.jpg  image/jpeg       jpg   1811    2965      g   \n",
      "4  8349914  8349914.jpg  image/jpeg       jpg   2252    3888      s   \n",
      "\n",
      "                                                                    file_url  \\\n",
      "0  https://cdn.donmai.us/original/1b/1e/1b1ee17dcc1ea8bc4782b6099c1ef502.jpg   \n",
      "1  https://cdn.donmai.us/original/7c/10/7c10b9ca22389e70ee940416ec54ded1.jpg   \n",
      "2  https://cdn.donmai.us/original/27/c3/27c311cce50713f8fd4ea8fe6d569666.png   \n",
      "3  https://cdn.donmai.us/original/ad/58/ad581c703855d4efc3ba2a1e7627e318.jpg   \n",
      "4  https://cdn.donmai.us/original/ac/ea/aceaee41507882faf7dd08f872e366aa.jpg   \n",
      "\n",
      "                      created_at  uploader_id  ...  tag_count_meta has_large  \\\n",
      "0  2024-10-27T16:21:20.845-04:00      1130070  ...               2      True   \n",
      "1  2024-10-27T16:20:26.211-04:00      1191549  ...               2      True   \n",
      "2  2024-10-27T16:19:21.973-04:00       546373  ...               2      True   \n",
      "3  2024-10-27T16:18:56.629-04:00        23799  ...               2      True   \n",
      "4  2024-10-27T16:18:11.056-04:00      1191549  ...               4      True   \n",
      "\n",
      "  has_visible_children  \\\n",
      "0                False   \n",
      "1                False   \n",
      "2                False   \n",
      "3                False   \n",
      "4                False   \n",
      "\n",
      "                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              tag_string_general  \\\n",
      "0                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     1girl solo   \n",
      "1                                                                                                                                                               1girl :o bare_shoulders blush bracelet detached_sleeves gold_trim gradient_hair green_eyes green_hair green_sleeves hair_between_eyes hair_ornament jewelry leaf_hair_ornament long_hair looking_at_viewer multicolored_hair open_mouth pointy_ears side_ponytail simple_background sleeveless solo star-shaped_pupils star_(symbol) symbol-shaped_pupils upper_body white_background white_hair   \n",
      "2                                                                                                                                                                                                                                                                                                        1girl :o ass black_thighhighs blush breasts brown_hair brown_skirt full_body game_console gamecube jacket large_breasts long_sleeves lying medium_hair on_side open_clothes open_jacket pink_eyes pink_footwear shirt skirt solo thighhighs white_shirt   \n",
      "3  1girl :q alternate_eye_color bat_wings blonde_hair breasts cleavage cleavage_cutout closed_mouth clothing_cutout dress earrings frilled_dress frilled_sleeves frills ghost gloves grey_pantyhose hair_ribbon halloween_costume head_wings holding holding_wand jewelry licking_lips long_hair looking_at_viewer medium_breasts medium_dress orange_dress pantyhose puffy_short_sleeves puffy_sleeves red_eyes red_ribbon ribbon short_sleeves sitting smile solo star_(symbol) star_earrings tiara tongue tongue_out virtual_youtuber wand white_gloves wings   \n",
      "4                        1girl alternate_costume ass backless_dress backless_outfit ballerina bare_back bare_shoulders closed_mouth detached_sleeves dress frilled_wrist_cuffs frills from_side full_body gloves gradient_hair green_eyes green_hair high_heels long_hair looking_at_viewer multicolored_hair pantyhose pointy_ears side_ponytail sleeveless sleeveless_dress smile solo streaked_hair symbol-shaped_pupils tutu white_background white_dress white_footwear white_gloves white_hair white_pantyhose white_sleeves white_wrist_cuffs wrist_cuffs   \n",
      "\n",
      "                 tag_string_character  \\\n",
      "0            jinhsi_(wuthering_waves)   \n",
      "1             nahida_(genshin_impact)   \n",
      "2                       nanami_chiaki   \n",
      "3  obake-chan_(yozora_mel) yozora_mel   \n",
      "4             nahida_(genshin_impact)   \n",
      "\n",
      "                                         tag_string_copyright  \\\n",
      "0                                             wuthering_waves   \n",
      "1                                              genshin_impact   \n",
      "2  danganronpa_(series) danganronpa_2:_goodbye_despair galaga   \n",
      "3                                                    hololive   \n",
      "4                                              genshin_impact   \n",
      "\n",
      "  tag_string_artist                                          tag_string_meta  \\\n",
      "0             nznzn                                        absurdres highres   \n",
      "1             nk7ss                               commentary_request highres   \n",
      "2      siroari_1235                                        absurdres highres   \n",
      "3         kuzumochi                                        absurdres highres   \n",
      "4       jinfengkaze  absurdres chinese_commentary commentary_request highres   \n",
      "\n",
      "                                                                   large_file_url  \\\n",
      "0  https://cdn.donmai.us/sample/1b/1e/sample-1b1ee17dcc1ea8bc4782b6099c1ef502.jpg   \n",
      "1  https://cdn.donmai.us/sample/7c/10/sample-7c10b9ca22389e70ee940416ec54ded1.jpg   \n",
      "2  https://cdn.donmai.us/sample/27/c3/sample-27c311cce50713f8fd4ea8fe6d569666.jpg   \n",
      "3  https://cdn.donmai.us/sample/ad/58/sample-ad581c703855d4efc3ba2a1e7627e318.jpg   \n",
      "4  https://cdn.donmai.us/sample/ac/ea/sample-aceaee41507882faf7dd08f872e366aa.jpg   \n",
      "\n",
      "                                                           preview_file_url  \n",
      "0  https://cdn.donmai.us/180x180/1b/1e/1b1ee17dcc1ea8bc4782b6099c1ef502.jpg  \n",
      "1  https://cdn.donmai.us/180x180/7c/10/7c10b9ca22389e70ee940416ec54ded1.jpg  \n",
      "2  https://cdn.donmai.us/180x180/27/c3/27c311cce50713f8fd4ea8fe6d569666.jpg  \n",
      "3  https://cdn.donmai.us/180x180/ad/58/ad581c703855d4efc3ba2a1e7627e318.jpg  \n",
      "4  https://cdn.donmai.us/180x180/ac/ea/aceaee41507882faf7dd08f872e366aa.jpg  \n",
      "\n",
      "[5 rows x 50 columns]\n"
     ]
    }
   ],
   "source": [
    "import pandas as pd\n",
    "\n",
    "# 设置显示所有列\n",
    "#pd.set_option('display.max_columns', None)\n",
    "\n",
    "# 设置显示所有行\n",
    "pd.set_option('display.max_rows', None)\n",
    "\n",
    "# 设置显示的宽度,这样较长的文本就不会被截断\n",
    "pd.set_option('display.width', None)\n",
    "\n",
    "# 设置单元格内容的显示长度,None 表示显示全部\n",
    "pd.set_option('display.max_colwidth', None)\n",
    "\n",
    "# 读取文件并显示\n",
    "df = pd.read_parquet(\"table.parquet\")\n",
    "print(df.head())"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.10.10"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}