Upload exp2/Untitled1.ipynb with huggingface_hub
Browse files- exp2/Untitled1.ipynb +129 -0
exp2/Untitled1.ipynb
ADDED
@@ -0,0 +1,129 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"cells": [
|
3 |
+
{
|
4 |
+
"cell_type": "code",
|
5 |
+
"execution_count": 4,
|
6 |
+
"id": "bd34c12a-3898-4399-805f-3003da4a26ec",
|
7 |
+
"metadata": {},
|
8 |
+
"outputs": [
|
9 |
+
{
|
10 |
+
"name": "stdout",
|
11 |
+
"output_type": "stream",
|
12 |
+
"text": [
|
13 |
+
" id filename mimetype extension width height rating \\\n",
|
14 |
+
"0 8349918 8349918.jpg image/jpeg jpg 6912 3888 g \n",
|
15 |
+
"1 8349917 8349917.jpg image/jpeg jpg 1488 1366 g \n",
|
16 |
+
"2 8349916 8349916.png image/png png 3072 4096 s \n",
|
17 |
+
"3 8349915 8349915.jpg image/jpeg jpg 1811 2965 g \n",
|
18 |
+
"4 8349914 8349914.jpg image/jpeg jpg 2252 3888 s \n",
|
19 |
+
"\n",
|
20 |
+
" file_url \\\n",
|
21 |
+
"0 https://cdn.donmai.us/original/1b/1e/1b1ee17dcc1ea8bc4782b6099c1ef502.jpg \n",
|
22 |
+
"1 https://cdn.donmai.us/original/7c/10/7c10b9ca22389e70ee940416ec54ded1.jpg \n",
|
23 |
+
"2 https://cdn.donmai.us/original/27/c3/27c311cce50713f8fd4ea8fe6d569666.png \n",
|
24 |
+
"3 https://cdn.donmai.us/original/ad/58/ad581c703855d4efc3ba2a1e7627e318.jpg \n",
|
25 |
+
"4 https://cdn.donmai.us/original/ac/ea/aceaee41507882faf7dd08f872e366aa.jpg \n",
|
26 |
+
"\n",
|
27 |
+
" created_at uploader_id ... tag_count_meta has_large \\\n",
|
28 |
+
"0 2024-10-27T16:21:20.845-04:00 1130070 ... 2 True \n",
|
29 |
+
"1 2024-10-27T16:20:26.211-04:00 1191549 ... 2 True \n",
|
30 |
+
"2 2024-10-27T16:19:21.973-04:00 546373 ... 2 True \n",
|
31 |
+
"3 2024-10-27T16:18:56.629-04:00 23799 ... 2 True \n",
|
32 |
+
"4 2024-10-27T16:18:11.056-04:00 1191549 ... 4 True \n",
|
33 |
+
"\n",
|
34 |
+
" has_visible_children \\\n",
|
35 |
+
"0 False \n",
|
36 |
+
"1 False \n",
|
37 |
+
"2 False \n",
|
38 |
+
"3 False \n",
|
39 |
+
"4 False \n",
|
40 |
+
"\n",
|
41 |
+
" tag_string_general \\\n",
|
42 |
+
"0 1girl solo \n",
|
43 |
+
"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",
|
44 |
+
"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",
|
45 |
+
"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",
|
46 |
+
"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",
|
47 |
+
"\n",
|
48 |
+
" tag_string_character \\\n",
|
49 |
+
"0 jinhsi_(wuthering_waves) \n",
|
50 |
+
"1 nahida_(genshin_impact) \n",
|
51 |
+
"2 nanami_chiaki \n",
|
52 |
+
"3 obake-chan_(yozora_mel) yozora_mel \n",
|
53 |
+
"4 nahida_(genshin_impact) \n",
|
54 |
+
"\n",
|
55 |
+
" tag_string_copyright \\\n",
|
56 |
+
"0 wuthering_waves \n",
|
57 |
+
"1 genshin_impact \n",
|
58 |
+
"2 danganronpa_(series) danganronpa_2:_goodbye_despair galaga \n",
|
59 |
+
"3 hololive \n",
|
60 |
+
"4 genshin_impact \n",
|
61 |
+
"\n",
|
62 |
+
" tag_string_artist tag_string_meta \\\n",
|
63 |
+
"0 nznzn absurdres highres \n",
|
64 |
+
"1 nk7ss commentary_request highres \n",
|
65 |
+
"2 siroari_1235 absurdres highres \n",
|
66 |
+
"3 kuzumochi absurdres highres \n",
|
67 |
+
"4 jinfengkaze absurdres chinese_commentary commentary_request highres \n",
|
68 |
+
"\n",
|
69 |
+
" large_file_url \\\n",
|
70 |
+
"0 https://cdn.donmai.us/sample/1b/1e/sample-1b1ee17dcc1ea8bc4782b6099c1ef502.jpg \n",
|
71 |
+
"1 https://cdn.donmai.us/sample/7c/10/sample-7c10b9ca22389e70ee940416ec54ded1.jpg \n",
|
72 |
+
"2 https://cdn.donmai.us/sample/27/c3/sample-27c311cce50713f8fd4ea8fe6d569666.jpg \n",
|
73 |
+
"3 https://cdn.donmai.us/sample/ad/58/sample-ad581c703855d4efc3ba2a1e7627e318.jpg \n",
|
74 |
+
"4 https://cdn.donmai.us/sample/ac/ea/sample-aceaee41507882faf7dd08f872e366aa.jpg \n",
|
75 |
+
"\n",
|
76 |
+
" preview_file_url \n",
|
77 |
+
"0 https://cdn.donmai.us/180x180/1b/1e/1b1ee17dcc1ea8bc4782b6099c1ef502.jpg \n",
|
78 |
+
"1 https://cdn.donmai.us/180x180/7c/10/7c10b9ca22389e70ee940416ec54ded1.jpg \n",
|
79 |
+
"2 https://cdn.donmai.us/180x180/27/c3/27c311cce50713f8fd4ea8fe6d569666.jpg \n",
|
80 |
+
"3 https://cdn.donmai.us/180x180/ad/58/ad581c703855d4efc3ba2a1e7627e318.jpg \n",
|
81 |
+
"4 https://cdn.donmai.us/180x180/ac/ea/aceaee41507882faf7dd08f872e366aa.jpg \n",
|
82 |
+
"\n",
|
83 |
+
"[5 rows x 50 columns]\n"
|
84 |
+
]
|
85 |
+
}
|
86 |
+
],
|
87 |
+
"source": [
|
88 |
+
"import pandas as pd\n",
|
89 |
+
"\n",
|
90 |
+
"# 设置显示所有列\n",
|
91 |
+
"#pd.set_option('display.max_columns', None)\n",
|
92 |
+
"\n",
|
93 |
+
"# 设置显示所有行\n",
|
94 |
+
"pd.set_option('display.max_rows', None)\n",
|
95 |
+
"\n",
|
96 |
+
"# 设置显示的宽度,这样较长的文本就不会被截断\n",
|
97 |
+
"pd.set_option('display.width', None)\n",
|
98 |
+
"\n",
|
99 |
+
"# 设置单元格内容的显示长度,None 表示显示全部\n",
|
100 |
+
"pd.set_option('display.max_colwidth', None)\n",
|
101 |
+
"\n",
|
102 |
+
"# 读取文件并显示\n",
|
103 |
+
"df = pd.read_parquet(\"table.parquet\")\n",
|
104 |
+
"print(df.head())"
|
105 |
+
]
|
106 |
+
}
|
107 |
+
],
|
108 |
+
"metadata": {
|
109 |
+
"kernelspec": {
|
110 |
+
"display_name": "Python 3",
|
111 |
+
"language": "python",
|
112 |
+
"name": "python3"
|
113 |
+
},
|
114 |
+
"language_info": {
|
115 |
+
"codemirror_mode": {
|
116 |
+
"name": "ipython",
|
117 |
+
"version": 3
|
118 |
+
},
|
119 |
+
"file_extension": ".py",
|
120 |
+
"mimetype": "text/x-python",
|
121 |
+
"name": "python",
|
122 |
+
"nbconvert_exporter": "python",
|
123 |
+
"pygments_lexer": "ipython3",
|
124 |
+
"version": "3.10.10"
|
125 |
+
}
|
126 |
+
},
|
127 |
+
"nbformat": 4,
|
128 |
+
"nbformat_minor": 5
|
129 |
+
}
|