{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "import pandas as pd" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
idtypequestionanswerannotation_tagx1y1x2y2widthheightimage
01line2022/3期の利益率は何%か0.51-500/11359603927730a1c325f3_006.png1828.31480.242529.201379.132667.01500.0NaN
12line2024/3期の利益率は2023/3期より何%上がったか?1.31-500/11359603927730a1c325f3_006.png1828.31480.242529.201379.132667.01500.0NaN
215lineグラフのタイトルは何か売上高2019年比推移1-500/13da97c1bc2fb4e725d49d_010.png521.73199.581424.58880.622667.01500.0NaN
316line23.1Qから24.3Qではどのくらい数字が上がったか?25.41-500/13da97c1bc2fb4e725d49d_010.png521.73199.581424.58880.622667.01500.0NaN
417line配当性向が最も低い年は?2019年1-500/141da1caf1c3b99f1ec4a9_026.png79.64195.832310.541562.312339.01654.0NaN
.......................................
1951032circle2023年3月期の保険の数値は何%か6.1r1/TIS_2023年3月期_ページ09.jpg244.19812.401808.881439.272000.01500.0NaN
1961311circle地域別累積投資比率ではどの国が一番割合を占めているか。日本r1/アイシン_2023年3月期_ページ14.jpg1605.56208.832620.521216.292667.01500.0NaN
1971312circle中国の数値は何%か15r1/アイシン_2023年3月期_ページ14.jpg1605.56208.832620.521216.292667.01500.0NaN
1981397circle2021年の社内取締役比率は何%か54.5r1/アズビル_2023年3月期_ページ53.jpg1478.72188.532465.13798.982667.01500.0NaN
1991398circle2022年の社内取締役比率は何%か33.3r1/アズビル_2023年3月期_ページ53.jpg1478.72188.532465.13798.982667.01500.0NaN
\n", "

200 rows × 12 columns

\n", "
" ], "text/plain": [ " id type question answer \\\n", "0 1 line 2022/3期の利益率は何%か 0.5 \n", "1 2 line 2024/3期の利益率は2023/3期より何%上がったか? 1.3 \n", "2 15 line グラフのタイトルは何か 売上高2019年比推移 \n", "3 16 line 23.1Qから24.3Qではどのくらい数字が上がったか? 25.4 \n", "4 17 line 配当性向が最も低い年は? 2019年 \n", ".. ... ... ... ... \n", "195 1032 circle 2023年3月期の保険の数値は何%か 6.1 \n", "196 1311 circle 地域別累積投資比率ではどの国が一番割合を占めているか。 日本 \n", "197 1312 circle 中国の数値は何%か 15 \n", "198 1397 circle 2021年の社内取締役比率は何%か 54.5 \n", "199 1398 circle 2022年の社内取締役比率は何%か 33.3 \n", "\n", " annotation_tag x1 y1 x2 y2 \\\n", "0 1-500/11359603927730a1c325f3_006.png 1828.31 480.24 2529.20 1379.13 \n", "1 1-500/11359603927730a1c325f3_006.png 1828.31 480.24 2529.20 1379.13 \n", "2 1-500/13da97c1bc2fb4e725d49d_010.png 521.73 199.58 1424.58 880.62 \n", "3 1-500/13da97c1bc2fb4e725d49d_010.png 521.73 199.58 1424.58 880.62 \n", "4 1-500/141da1caf1c3b99f1ec4a9_026.png 79.64 195.83 2310.54 1562.31 \n", ".. ... ... ... ... ... \n", "195 r1/TIS_2023年3月期_ページ09.jpg 244.19 812.40 1808.88 1439.27 \n", "196 r1/アイシン_2023年3月期_ページ14.jpg 1605.56 208.83 2620.52 1216.29 \n", "197 r1/アイシン_2023年3月期_ページ14.jpg 1605.56 208.83 2620.52 1216.29 \n", "198 r1/アズビル_2023年3月期_ページ53.jpg 1478.72 188.53 2465.13 798.98 \n", "199 r1/アズビル_2023年3月期_ページ53.jpg 1478.72 188.53 2465.13 798.98 \n", "\n", " width height image \n", "0 2667.0 1500.0 NaN \n", "1 2667.0 1500.0 NaN \n", "2 2667.0 1500.0 NaN \n", "3 2667.0 1500.0 NaN \n", "4 2339.0 1654.0 NaN \n", ".. ... ... ... \n", "195 2000.0 1500.0 NaN \n", "196 2667.0 1500.0 NaN \n", "197 2667.0 1500.0 NaN \n", "198 2667.0 1500.0 NaN \n", "199 2667.0 1500.0 NaN \n", "\n", "[200 rows x 12 columns]" ] }, "execution_count": 2, "metadata": {}, "output_type": "execute_result" } ], "source": [ "annotation_df = pd.read_csv('annotation.csv')\n", "annotation_df" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
annotation_tagcitation_source_urlcitation_company_namecitation_file_namecitation_pdf_urllocal_file_namepage_no
01-500/11359603927730a1c325f3_006.pnghttps://www.yaginet.co.jp/ir/library/presentat...株式会社ヤギ2024年3月期 決算補足説明資料https://data.swcms.net/file/yaginet-corp/dam/j...140120240509587890.pdf7
11-500/13da97c1bc2fb4e725d49d_010.pnghttps://www.via-hd.co.jp/ir/library/session/株式会社ヴィア・ホールディングス2024年3月期 決算説明会資料https://www.via-hd.co.jp/ir/library/session/as...20240614.pdf15
21-500/141da1caf1c3b99f1ec4a9_026.pnghttps://www.okr-ind.co.jp/ir/supplemental-doc/大倉工業株式会社2023年12月期決算説明資料https://www.okr-ind.co.jp/wp/wp-content/upload...20240221IR.pdf27
31-500/141da1caf1c3b99f1ec4a9_036.pnghttps://www.okr-ind.co.jp/ir/supplemental-doc/大倉工業株式会社2023年12月期決算説明資料https://www.okr-ind.co.jp/wp/wp-content/upload...20240221IR.pdf37
41-500/14cb03f0a9ef31ee990171_051.pnghttps://openhouse-group.co.jp/ir/library/libra...株式会社オープンハウスグループ2024年9月期 第2四半期 決算説明資料https://openhouse-group.co.jp/ir/upload_file/m...kessan_202492q.pdf52
........................
81bd0d8ccc4b4e8a2fa3aab1_081.pnghttps://www.uluru.biz/ir/presentation.html株式会社うるる2024年3月期 通期及び第4四半期 決算説明資料https://ssl4.eir-parts.net/doc/3979/ir_materia...00 (15).pdf82
82r1/GMOペイメントゲートウェイ_2022年9月期_ページ26.jpghttps://www.gmo-pg.com/ir/library/presentation/GMOペイメントゲートウェイ株式会社2022 年9月期 決算説明会https://www.gmo-pg.com/news/pdf/20221115_gmo-p...20221115_gmo-pg_kessan.pdf26
83r1/TIS_2023年3月期_ページ09.jpghttps://www.tis.co.jp/ir/finance/meeting/TIS株式会社2023年3月期 決算説明資料https://www.tis.co.jp/documents/jp/ir/finance/...230509_1.pdf9
84r1/アイシン_2023年3月期_ページ14.jpghttps://www.aisin.com/jp/investors/settlement/株式会社アイシン2023年3月期 決算説明会https://www.aisin.com/jp/investors/settlement/...fy2023_q4_presentation-j.pdf14
85r1/アズビル_2023年3月期_ページ53.jpghttps://www.azbil.com/jp/ir/library/result/アズビル株式会社2022年度(2023年3月期) 決算説明資料https://www.azbil.com/jp/ir/library/result/__i...azbil_FY2022_4Q_amm-j-3.pdf53
\n", "

86 rows × 7 columns

\n", "
" ], "text/plain": [ " annotation_tag \\\n", "0 1-500/11359603927730a1c325f3_006.png \n", "1 1-500/13da97c1bc2fb4e725d49d_010.png \n", "2 1-500/141da1caf1c3b99f1ec4a9_026.png \n", "3 1-500/141da1caf1c3b99f1ec4a9_036.png \n", "4 1-500/14cb03f0a9ef31ee990171_051.png \n", ".. ... \n", "81 bd0d8ccc4b4e8a2fa3aab1_081.png \n", "82 r1/GMOペイメントゲートウェイ_2022年9月期_ページ26.jpg \n", "83 r1/TIS_2023年3月期_ページ09.jpg \n", "84 r1/アイシン_2023年3月期_ページ14.jpg \n", "85 r1/アズビル_2023年3月期_ページ53.jpg \n", "\n", " citation_source_url citation_company_name \\\n", "0 https://www.yaginet.co.jp/ir/library/presentat... 株式会社ヤギ \n", "1 https://www.via-hd.co.jp/ir/library/session/ 株式会社ヴィア・ホールディングス \n", "2 https://www.okr-ind.co.jp/ir/supplemental-doc/ 大倉工業株式会社 \n", "3 https://www.okr-ind.co.jp/ir/supplemental-doc/ 大倉工業株式会社 \n", "4 https://openhouse-group.co.jp/ir/library/libra... 株式会社オープンハウスグループ \n", ".. ... ... \n", "81 https://www.uluru.biz/ir/presentation.html 株式会社うるる \n", "82 https://www.gmo-pg.com/ir/library/presentation/ GMOペイメントゲートウェイ株式会社 \n", "83 https://www.tis.co.jp/ir/finance/meeting/ TIS株式会社 \n", "84 https://www.aisin.com/jp/investors/settlement/ 株式会社アイシン \n", "85 https://www.azbil.com/jp/ir/library/result/ アズビル株式会社 \n", "\n", " citation_file_name \\\n", "0 2024年3月期 決算補足説明資料 \n", "1 2024年3月期 決算説明会資料 \n", "2 2023年12月期決算説明資料 \n", "3 2023年12月期決算説明資料 \n", "4 2024年9月期 第2四半期 決算説明資料 \n", ".. ... \n", "81 2024年3月期 通期及び第4四半期 決算説明資料 \n", "82 2022 年9月期 決算説明会 \n", "83 2023年3月期 決算説明資料 \n", "84 2023年3月期 決算説明会 \n", "85 2022年度(2023年3月期) 決算説明資料 \n", "\n", " citation_pdf_url \\\n", "0 https://data.swcms.net/file/yaginet-corp/dam/j... \n", "1 https://www.via-hd.co.jp/ir/library/session/as... \n", "2 https://www.okr-ind.co.jp/wp/wp-content/upload... \n", "3 https://www.okr-ind.co.jp/wp/wp-content/upload... \n", "4 https://openhouse-group.co.jp/ir/upload_file/m... \n", ".. ... \n", "81 https://ssl4.eir-parts.net/doc/3979/ir_materia... \n", "82 https://www.gmo-pg.com/news/pdf/20221115_gmo-p... \n", "83 https://www.tis.co.jp/documents/jp/ir/finance/... \n", "84 https://www.aisin.com/jp/investors/settlement/... \n", "85 https://www.azbil.com/jp/ir/library/result/__i... \n", "\n", " local_file_name page_no \n", "0 140120240509587890.pdf 7 \n", "1 20240614.pdf 15 \n", "2 20240221IR.pdf 27 \n", "3 20240221IR.pdf 37 \n", "4 kessan_202492q.pdf 52 \n", ".. ... ... \n", "81 00 (15).pdf 82 \n", "82 20221115_gmo-pg_kessan.pdf 26 \n", "83 230509_1.pdf 9 \n", "84 fy2023_q4_presentation-j.pdf 14 \n", "85 azbil_FY2022_4Q_amm-j-3.pdf 53 \n", "\n", "[86 rows x 7 columns]" ] }, "execution_count": 3, "metadata": {}, "output_type": "execute_result" } ], "source": [ "citation_df = pd.read_csv('source.csv', encoding='shift_jis')\n", "citation_df" ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
idtypequestionanswerannotation_tagx1y1x2y2widthheightimagecitation_source_urlcitation_company_namecitation_file_namecitation_pdf_urllocal_file_namepage_no
01line2022/3期の利益率は何%か0.51-500/11359603927730a1c325f3_006.png1828.31480.242529.201379.132667.01500.0NaNhttps://www.yaginet.co.jp/ir/library/presentat...株式会社ヤギ2024年3月期 決算補足説明資料https://data.swcms.net/file/yaginet-corp/dam/j...140120240509587890.pdf7
12line2024/3期の利益率は2023/3期より何%上がったか?1.31-500/11359603927730a1c325f3_006.png1828.31480.242529.201379.132667.01500.0NaNhttps://www.yaginet.co.jp/ir/library/presentat...株式会社ヤギ2024年3月期 決算補足説明資料https://data.swcms.net/file/yaginet-corp/dam/j...140120240509587890.pdf7
215lineグラフのタイトルは何か売上高2019年比推移1-500/13da97c1bc2fb4e725d49d_010.png521.73199.581424.58880.622667.01500.0NaNhttps://www.via-hd.co.jp/ir/library/session/株式会社ヴィア・ホールディングス2024年3月期 決算説明会資料https://www.via-hd.co.jp/ir/library/session/as...20240614.pdf15
316line23.1Qから24.3Qではどのくらい数字が上がったか?25.41-500/13da97c1bc2fb4e725d49d_010.png521.73199.581424.58880.622667.01500.0NaNhttps://www.via-hd.co.jp/ir/library/session/株式会社ヴィア・ホールディングス2024年3月期 決算説明会資料https://www.via-hd.co.jp/ir/library/session/as...20240614.pdf15
417line配当性向が最も低い年は?2019年1-500/141da1caf1c3b99f1ec4a9_026.png79.64195.832310.541562.312339.01654.0NaNhttps://www.okr-ind.co.jp/ir/supplemental-doc/大倉工業株式会社2023年12月期決算説明資料https://www.okr-ind.co.jp/wp/wp-content/upload...20240221IR.pdf27
.........................................................
1951032circle2023年3月期の保険の数値は何%か6.1r1/TIS_2023年3月期_ページ09.jpg244.19812.401808.881439.272000.01500.0NaNhttps://www.tis.co.jp/ir/finance/meeting/TIS株式会社2023年3月期 決算説明資料https://www.tis.co.jp/documents/jp/ir/finance/...230509_1.pdf9
1961311circle地域別累積投資比率ではどの国が一番割合を占めているか。日本r1/アイシン_2023年3月期_ページ14.jpg1605.56208.832620.521216.292667.01500.0NaNhttps://www.aisin.com/jp/investors/settlement/株式会社アイシン2023年3月期 決算説明会https://www.aisin.com/jp/investors/settlement/...fy2023_q4_presentation-j.pdf14
1971312circle中国の数値は何%か15r1/アイシン_2023年3月期_ページ14.jpg1605.56208.832620.521216.292667.01500.0NaNhttps://www.aisin.com/jp/investors/settlement/株式会社アイシン2023年3月期 決算説明会https://www.aisin.com/jp/investors/settlement/...fy2023_q4_presentation-j.pdf14
1981397circle2021年の社内取締役比率は何%か54.5r1/アズビル_2023年3月期_ページ53.jpg1478.72188.532465.13798.982667.01500.0NaNhttps://www.azbil.com/jp/ir/library/result/アズビル株式会社2022年度(2023年3月期) 決算説明資料https://www.azbil.com/jp/ir/library/result/__i...azbil_FY2022_4Q_amm-j-3.pdf53
1991398circle2022年の社内取締役比率は何%か33.3r1/アズビル_2023年3月期_ページ53.jpg1478.72188.532465.13798.982667.01500.0NaNhttps://www.azbil.com/jp/ir/library/result/アズビル株式会社2022年度(2023年3月期) 決算説明資料https://www.azbil.com/jp/ir/library/result/__i...azbil_FY2022_4Q_amm-j-3.pdf53
\n", "

200 rows × 18 columns

\n", "
" ], "text/plain": [ " id type question answer \\\n", "0 1 line 2022/3期の利益率は何%か 0.5 \n", "1 2 line 2024/3期の利益率は2023/3期より何%上がったか? 1.3 \n", "2 15 line グラフのタイトルは何か 売上高2019年比推移 \n", "3 16 line 23.1Qから24.3Qではどのくらい数字が上がったか? 25.4 \n", "4 17 line 配当性向が最も低い年は? 2019年 \n", ".. ... ... ... ... \n", "195 1032 circle 2023年3月期の保険の数値は何%か 6.1 \n", "196 1311 circle 地域別累積投資比率ではどの国が一番割合を占めているか。 日本 \n", "197 1312 circle 中国の数値は何%か 15 \n", "198 1397 circle 2021年の社内取締役比率は何%か 54.5 \n", "199 1398 circle 2022年の社内取締役比率は何%か 33.3 \n", "\n", " annotation_tag x1 y1 x2 y2 \\\n", "0 1-500/11359603927730a1c325f3_006.png 1828.31 480.24 2529.20 1379.13 \n", "1 1-500/11359603927730a1c325f3_006.png 1828.31 480.24 2529.20 1379.13 \n", "2 1-500/13da97c1bc2fb4e725d49d_010.png 521.73 199.58 1424.58 880.62 \n", "3 1-500/13da97c1bc2fb4e725d49d_010.png 521.73 199.58 1424.58 880.62 \n", "4 1-500/141da1caf1c3b99f1ec4a9_026.png 79.64 195.83 2310.54 1562.31 \n", ".. ... ... ... ... ... \n", "195 r1/TIS_2023年3月期_ページ09.jpg 244.19 812.40 1808.88 1439.27 \n", "196 r1/アイシン_2023年3月期_ページ14.jpg 1605.56 208.83 2620.52 1216.29 \n", "197 r1/アイシン_2023年3月期_ページ14.jpg 1605.56 208.83 2620.52 1216.29 \n", "198 r1/アズビル_2023年3月期_ページ53.jpg 1478.72 188.53 2465.13 798.98 \n", "199 r1/アズビル_2023年3月期_ページ53.jpg 1478.72 188.53 2465.13 798.98 \n", "\n", " width height image citation_source_url \\\n", "0 2667.0 1500.0 NaN https://www.yaginet.co.jp/ir/library/presentat... \n", "1 2667.0 1500.0 NaN https://www.yaginet.co.jp/ir/library/presentat... \n", "2 2667.0 1500.0 NaN https://www.via-hd.co.jp/ir/library/session/ \n", "3 2667.0 1500.0 NaN https://www.via-hd.co.jp/ir/library/session/ \n", "4 2339.0 1654.0 NaN https://www.okr-ind.co.jp/ir/supplemental-doc/ \n", ".. ... ... ... ... \n", "195 2000.0 1500.0 NaN https://www.tis.co.jp/ir/finance/meeting/ \n", "196 2667.0 1500.0 NaN https://www.aisin.com/jp/investors/settlement/ \n", "197 2667.0 1500.0 NaN https://www.aisin.com/jp/investors/settlement/ \n", "198 2667.0 1500.0 NaN https://www.azbil.com/jp/ir/library/result/ \n", "199 2667.0 1500.0 NaN https://www.azbil.com/jp/ir/library/result/ \n", "\n", " citation_company_name citation_file_name \\\n", "0 株式会社ヤギ 2024年3月期 決算補足説明資料 \n", "1 株式会社ヤギ 2024年3月期 決算補足説明資料 \n", "2 株式会社ヴィア・ホールディングス 2024年3月期 決算説明会資料 \n", "3 株式会社ヴィア・ホールディングス 2024年3月期 決算説明会資料 \n", "4 大倉工業株式会社 2023年12月期決算説明資料 \n", ".. ... ... \n", "195 TIS株式会社 2023年3月期 決算説明資料 \n", "196 株式会社アイシン 2023年3月期 決算説明会 \n", "197 株式会社アイシン 2023年3月期 決算説明会 \n", "198 アズビル株式会社 2022年度(2023年3月期) 決算説明資料 \n", "199 アズビル株式会社 2022年度(2023年3月期) 決算説明資料 \n", "\n", " citation_pdf_url \\\n", "0 https://data.swcms.net/file/yaginet-corp/dam/j... \n", "1 https://data.swcms.net/file/yaginet-corp/dam/j... \n", "2 https://www.via-hd.co.jp/ir/library/session/as... \n", "3 https://www.via-hd.co.jp/ir/library/session/as... \n", "4 https://www.okr-ind.co.jp/wp/wp-content/upload... \n", ".. ... \n", "195 https://www.tis.co.jp/documents/jp/ir/finance/... \n", "196 https://www.aisin.com/jp/investors/settlement/... \n", "197 https://www.aisin.com/jp/investors/settlement/... \n", "198 https://www.azbil.com/jp/ir/library/result/__i... \n", "199 https://www.azbil.com/jp/ir/library/result/__i... \n", "\n", " local_file_name page_no \n", "0 140120240509587890.pdf 7 \n", "1 140120240509587890.pdf 7 \n", "2 20240614.pdf 15 \n", "3 20240614.pdf 15 \n", "4 20240221IR.pdf 27 \n", ".. ... ... \n", "195 230509_1.pdf 9 \n", "196 fy2023_q4_presentation-j.pdf 14 \n", "197 fy2023_q4_presentation-j.pdf 14 \n", "198 azbil_FY2022_4Q_amm-j-3.pdf 53 \n", "199 azbil_FY2022_4Q_amm-j-3.pdf 53 \n", "\n", "[200 rows x 18 columns]" ] }, "execution_count": 4, "metadata": {}, "output_type": "execute_result" } ], "source": [ "merged_df = pd.merge(annotation_df, citation_df, on='annotation_tag')\n", "merged_df" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "import pymupdf\n", "\n", "zoom_x = 3.0 # horizontal zoom\n", "zoom_y = 3.0 # vertical zoom\n", "mat = pymupdf.Matrix(zoom_x, zoom_y) # zoom factor 3 in each dimension" ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "/tmp/ipykernel_3350573/164051748.py:27: SettingWithCopyWarning: \n", "A value is trying to be set on a copy of a slice from a DataFrame\n", "\n", "See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy\n", " merged_df['image'][i] = img\n" ] } ], "source": [ "import io\n", "from PIL import Image\n", "import matplotlib.pyplot as plt\n", "\n", "for i in range(0, len(merged_df), 2): \n", " pdf_filename = merged_df['local_file_name'][i]\n", " pdf_filename = f'./pdf/{pdf_filename}'\n", " pdf = pymupdf.open(pdf_filename)\n", " page_no = int(merged_df['page_no'][i]-1)\n", " page = pdf[page_no]\n", " pix = page.get_pixmap(matrix=mat)\n", " byte = pix.pil_tobytes(\"png\")\n", " binary = io.BytesIO(byte)\n", " pil_img = Image.open(binary)\n", " width= int(merged_df['width'][i])\n", " height = int(merged_df['height'][i])\n", " dst = pil_img.resize((width, height), Image.LANCZOS)\n", " x1 = merged_df['x1'][i]\n", " y1 = merged_df['y1'][i]\n", " x2 = merged_df['x2'][i]\n", " y2 = merged_df['y2'][i]\n", " cropped_img = dst.crop([x1,y1,x2,y2])\n", " with io.BytesIO() as output:\n", " cropped_img.save(output,format=\"PNG\")\n", " cropped_img_binary = output.getvalue()\n", " img = {\"bytes\": cropped_img_binary}\n", " merged_df['image'][i] = img\n", " merged_df['image'][i+1] = img" ] }, { "cell_type": "code", "execution_count": 7, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
idtypequestionanswerannotation_tagx1y1x2y2widthheightimagecitation_source_urlcitation_company_namecitation_file_namecitation_pdf_urllocal_file_namepage_no
01line2022/3期の利益率は何%か0.51-500/11359603927730a1c325f3_006.png1828.31480.242529.201379.132667.01500.0{'bytes': b'\\x89PNG\\r\\n\\x1a\\n\\x00\\x00\\x00\\rIHD...https://www.yaginet.co.jp/ir/library/presentat...株式会社ヤギ2024年3月期 決算補足説明資料https://data.swcms.net/file/yaginet-corp/dam/j...140120240509587890.pdf7
12line2024/3期の利益率は2023/3期より何%上がったか?1.31-500/11359603927730a1c325f3_006.png1828.31480.242529.201379.132667.01500.0{'bytes': b'\\x89PNG\\r\\n\\x1a\\n\\x00\\x00\\x00\\rIHD...https://www.yaginet.co.jp/ir/library/presentat...株式会社ヤギ2024年3月期 決算補足説明資料https://data.swcms.net/file/yaginet-corp/dam/j...140120240509587890.pdf7
215lineグラフのタイトルは何か売上高2019年比推移1-500/13da97c1bc2fb4e725d49d_010.png521.73199.581424.58880.622667.01500.0{'bytes': b'\\x89PNG\\r\\n\\x1a\\n\\x00\\x00\\x00\\rIHD...https://www.via-hd.co.jp/ir/library/session/株式会社ヴィア・ホールディングス2024年3月期 決算説明会資料https://www.via-hd.co.jp/ir/library/session/as...20240614.pdf15
316line23.1Qから24.3Qではどのくらい数字が上がったか?25.41-500/13da97c1bc2fb4e725d49d_010.png521.73199.581424.58880.622667.01500.0{'bytes': b'\\x89PNG\\r\\n\\x1a\\n\\x00\\x00\\x00\\rIHD...https://www.via-hd.co.jp/ir/library/session/株式会社ヴィア・ホールディングス2024年3月期 決算説明会資料https://www.via-hd.co.jp/ir/library/session/as...20240614.pdf15
417line配当性向が最も低い年は?2019年1-500/141da1caf1c3b99f1ec4a9_026.png79.64195.832310.541562.312339.01654.0{'bytes': b'\\x89PNG\\r\\n\\x1a\\n\\x00\\x00\\x00\\rIHD...https://www.okr-ind.co.jp/ir/supplemental-doc/大倉工業株式会社2023年12月期決算説明資料https://www.okr-ind.co.jp/wp/wp-content/upload...20240221IR.pdf27
.........................................................
1951032circle2023年3月期の保険の数値は何%か6.1r1/TIS_2023年3月期_ページ09.jpg244.19812.401808.881439.272000.01500.0{'bytes': b'\\x89PNG\\r\\n\\x1a\\n\\x00\\x00\\x00\\rIHD...https://www.tis.co.jp/ir/finance/meeting/TIS株式会社2023年3月期 決算説明資料https://www.tis.co.jp/documents/jp/ir/finance/...230509_1.pdf9
1961311circle地域別累積投資比率ではどの国が一番割合を占めているか。日本r1/アイシン_2023年3月期_ページ14.jpg1605.56208.832620.521216.292667.01500.0{'bytes': b'\\x89PNG\\r\\n\\x1a\\n\\x00\\x00\\x00\\rIHD...https://www.aisin.com/jp/investors/settlement/株式会社アイシン2023年3月期 決算説明会https://www.aisin.com/jp/investors/settlement/...fy2023_q4_presentation-j.pdf14
1971312circle中国の数値は何%か15r1/アイシン_2023年3月期_ページ14.jpg1605.56208.832620.521216.292667.01500.0{'bytes': b'\\x89PNG\\r\\n\\x1a\\n\\x00\\x00\\x00\\rIHD...https://www.aisin.com/jp/investors/settlement/株式会社アイシン2023年3月期 決算説明会https://www.aisin.com/jp/investors/settlement/...fy2023_q4_presentation-j.pdf14
1981397circle2021年の社内取締役比率は何%か54.5r1/アズビル_2023年3月期_ページ53.jpg1478.72188.532465.13798.982667.01500.0{'bytes': b'\\x89PNG\\r\\n\\x1a\\n\\x00\\x00\\x00\\rIHD...https://www.azbil.com/jp/ir/library/result/アズビル株式会社2022年度(2023年3月期) 決算説明資料https://www.azbil.com/jp/ir/library/result/__i...azbil_FY2022_4Q_amm-j-3.pdf53
1991398circle2022年の社内取締役比率は何%か33.3r1/アズビル_2023年3月期_ページ53.jpg1478.72188.532465.13798.982667.01500.0{'bytes': b'\\x89PNG\\r\\n\\x1a\\n\\x00\\x00\\x00\\rIHD...https://www.azbil.com/jp/ir/library/result/アズビル株式会社2022年度(2023年3月期) 決算説明資料https://www.azbil.com/jp/ir/library/result/__i...azbil_FY2022_4Q_amm-j-3.pdf53
\n", "

200 rows × 18 columns

\n", "
" ], "text/plain": [ " id type question answer \\\n", "0 1 line 2022/3期の利益率は何%か 0.5 \n", "1 2 line 2024/3期の利益率は2023/3期より何%上がったか? 1.3 \n", "2 15 line グラフのタイトルは何か 売上高2019年比推移 \n", "3 16 line 23.1Qから24.3Qではどのくらい数字が上がったか? 25.4 \n", "4 17 line 配当性向が最も低い年は? 2019年 \n", ".. ... ... ... ... \n", "195 1032 circle 2023年3月期の保険の数値は何%か 6.1 \n", "196 1311 circle 地域別累積投資比率ではどの国が一番割合を占めているか。 日本 \n", "197 1312 circle 中国の数値は何%か 15 \n", "198 1397 circle 2021年の社内取締役比率は何%か 54.5 \n", "199 1398 circle 2022年の社内取締役比率は何%か 33.3 \n", "\n", " annotation_tag x1 y1 x2 y2 \\\n", "0 1-500/11359603927730a1c325f3_006.png 1828.31 480.24 2529.20 1379.13 \n", "1 1-500/11359603927730a1c325f3_006.png 1828.31 480.24 2529.20 1379.13 \n", "2 1-500/13da97c1bc2fb4e725d49d_010.png 521.73 199.58 1424.58 880.62 \n", "3 1-500/13da97c1bc2fb4e725d49d_010.png 521.73 199.58 1424.58 880.62 \n", "4 1-500/141da1caf1c3b99f1ec4a9_026.png 79.64 195.83 2310.54 1562.31 \n", ".. ... ... ... ... ... \n", "195 r1/TIS_2023年3月期_ページ09.jpg 244.19 812.40 1808.88 1439.27 \n", "196 r1/アイシン_2023年3月期_ページ14.jpg 1605.56 208.83 2620.52 1216.29 \n", "197 r1/アイシン_2023年3月期_ページ14.jpg 1605.56 208.83 2620.52 1216.29 \n", "198 r1/アズビル_2023年3月期_ページ53.jpg 1478.72 188.53 2465.13 798.98 \n", "199 r1/アズビル_2023年3月期_ページ53.jpg 1478.72 188.53 2465.13 798.98 \n", "\n", " width height image \\\n", "0 2667.0 1500.0 {'bytes': b'\\x89PNG\\r\\n\\x1a\\n\\x00\\x00\\x00\\rIHD... \n", "1 2667.0 1500.0 {'bytes': b'\\x89PNG\\r\\n\\x1a\\n\\x00\\x00\\x00\\rIHD... \n", "2 2667.0 1500.0 {'bytes': b'\\x89PNG\\r\\n\\x1a\\n\\x00\\x00\\x00\\rIHD... \n", "3 2667.0 1500.0 {'bytes': b'\\x89PNG\\r\\n\\x1a\\n\\x00\\x00\\x00\\rIHD... \n", "4 2339.0 1654.0 {'bytes': b'\\x89PNG\\r\\n\\x1a\\n\\x00\\x00\\x00\\rIHD... \n", ".. ... ... ... \n", "195 2000.0 1500.0 {'bytes': b'\\x89PNG\\r\\n\\x1a\\n\\x00\\x00\\x00\\rIHD... \n", "196 2667.0 1500.0 {'bytes': b'\\x89PNG\\r\\n\\x1a\\n\\x00\\x00\\x00\\rIHD... \n", "197 2667.0 1500.0 {'bytes': b'\\x89PNG\\r\\n\\x1a\\n\\x00\\x00\\x00\\rIHD... \n", "198 2667.0 1500.0 {'bytes': b'\\x89PNG\\r\\n\\x1a\\n\\x00\\x00\\x00\\rIHD... \n", "199 2667.0 1500.0 {'bytes': b'\\x89PNG\\r\\n\\x1a\\n\\x00\\x00\\x00\\rIHD... \n", "\n", " citation_source_url citation_company_name \\\n", "0 https://www.yaginet.co.jp/ir/library/presentat... 株式会社ヤギ \n", "1 https://www.yaginet.co.jp/ir/library/presentat... 株式会社ヤギ \n", "2 https://www.via-hd.co.jp/ir/library/session/ 株式会社ヴィア・ホールディングス \n", "3 https://www.via-hd.co.jp/ir/library/session/ 株式会社ヴィア・ホールディングス \n", "4 https://www.okr-ind.co.jp/ir/supplemental-doc/ 大倉工業株式会社 \n", ".. ... ... \n", "195 https://www.tis.co.jp/ir/finance/meeting/ TIS株式会社 \n", "196 https://www.aisin.com/jp/investors/settlement/ 株式会社アイシン \n", "197 https://www.aisin.com/jp/investors/settlement/ 株式会社アイシン \n", "198 https://www.azbil.com/jp/ir/library/result/ アズビル株式会社 \n", "199 https://www.azbil.com/jp/ir/library/result/ アズビル株式会社 \n", "\n", " citation_file_name \\\n", "0 2024年3月期 決算補足説明資料 \n", "1 2024年3月期 決算補足説明資料 \n", "2 2024年3月期 決算説明会資料 \n", "3 2024年3月期 決算説明会資料 \n", "4 2023年12月期決算説明資料 \n", ".. ... \n", "195 2023年3月期 決算説明資料 \n", "196 2023年3月期 決算説明会 \n", "197 2023年3月期 決算説明会 \n", "198 2022年度(2023年3月期) 決算説明資料 \n", "199 2022年度(2023年3月期) 決算説明資料 \n", "\n", " citation_pdf_url \\\n", "0 https://data.swcms.net/file/yaginet-corp/dam/j... \n", "1 https://data.swcms.net/file/yaginet-corp/dam/j... \n", "2 https://www.via-hd.co.jp/ir/library/session/as... \n", "3 https://www.via-hd.co.jp/ir/library/session/as... \n", "4 https://www.okr-ind.co.jp/wp/wp-content/upload... \n", ".. ... \n", "195 https://www.tis.co.jp/documents/jp/ir/finance/... \n", "196 https://www.aisin.com/jp/investors/settlement/... \n", "197 https://www.aisin.com/jp/investors/settlement/... \n", "198 https://www.azbil.com/jp/ir/library/result/__i... \n", "199 https://www.azbil.com/jp/ir/library/result/__i... \n", "\n", " local_file_name page_no \n", "0 140120240509587890.pdf 7 \n", "1 140120240509587890.pdf 7 \n", "2 20240614.pdf 15 \n", "3 20240614.pdf 15 \n", "4 20240221IR.pdf 27 \n", ".. ... ... \n", "195 230509_1.pdf 9 \n", "196 fy2023_q4_presentation-j.pdf 14 \n", "197 fy2023_q4_presentation-j.pdf 14 \n", "198 azbil_FY2022_4Q_amm-j-3.pdf 53 \n", "199 azbil_FY2022_4Q_amm-j-3.pdf 53 \n", "\n", "[200 rows x 18 columns]" ] }, "execution_count": 7, "metadata": {}, "output_type": "execute_result" } ], "source": [ "merged_df" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "for i in range(0, 10, 2):\n", " text = f\"\"\"\n", " 質問1:{merged_df[\"question\"][i]}\n", " 回答1:{merged_df[\"answer\"][i]}\n", "\n", " 質問2:{merged_df[\"question\"][i+1]}\n", " 回答2:{merged_df[\"answer\"][i+1]}\n", " \"\"\"\n", " print(merged_df[\"id\"][i], merged_df[\"type\"][i])\n", " print(text)\n", "\n", " img_data = merged_df[\"image\"][i][\"bytes\"]\n", " img = Image.open(io.BytesIO(img_data))\n", " plt.figure(figsize=(10, 10))\n", " plt.imshow(img)\n", " plt.axis('off') # 軸を非表示\n", " plt.show()" ] }, { "cell_type": "code", "execution_count": 9, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
idtypequestionanswerimage
01line2022/3期の利益率は何%か0.5{'bytes': b'\\x89PNG\\r\\n\\x1a\\n\\x00\\x00\\x00\\rIHD...
12line2024/3期の利益率は2023/3期より何%上がったか?1.3{'bytes': b'\\x89PNG\\r\\n\\x1a\\n\\x00\\x00\\x00\\rIHD...
215lineグラフのタイトルは何か売上高2019年比推移{'bytes': b'\\x89PNG\\r\\n\\x1a\\n\\x00\\x00\\x00\\rIHD...
316line23.1Qから24.3Qではどのくらい数字が上がったか?25.4{'bytes': b'\\x89PNG\\r\\n\\x1a\\n\\x00\\x00\\x00\\rIHD...
417line配当性向が最も低い年は?2019年{'bytes': b'\\x89PNG\\r\\n\\x1a\\n\\x00\\x00\\x00\\rIHD...
..................
1951032circle2023年3月期の保険の数値は何%か6.1{'bytes': b'\\x89PNG\\r\\n\\x1a\\n\\x00\\x00\\x00\\rIHD...
1961311circle地域別累積投資比率ではどの国が一番割合を占めているか。日本{'bytes': b'\\x89PNG\\r\\n\\x1a\\n\\x00\\x00\\x00\\rIHD...
1971312circle中国の数値は何%か15{'bytes': b'\\x89PNG\\r\\n\\x1a\\n\\x00\\x00\\x00\\rIHD...
1981397circle2021年の社内取締役比率は何%か54.5{'bytes': b'\\x89PNG\\r\\n\\x1a\\n\\x00\\x00\\x00\\rIHD...
1991398circle2022年の社内取締役比率は何%か33.3{'bytes': b'\\x89PNG\\r\\n\\x1a\\n\\x00\\x00\\x00\\rIHD...
\n", "

200 rows × 5 columns

\n", "
" ], "text/plain": [ " id type question answer \\\n", "0 1 line 2022/3期の利益率は何%か 0.5 \n", "1 2 line 2024/3期の利益率は2023/3期より何%上がったか? 1.3 \n", "2 15 line グラフのタイトルは何か 売上高2019年比推移 \n", "3 16 line 23.1Qから24.3Qではどのくらい数字が上がったか? 25.4 \n", "4 17 line 配当性向が最も低い年は? 2019年 \n", ".. ... ... ... ... \n", "195 1032 circle 2023年3月期の保険の数値は何%か 6.1 \n", "196 1311 circle 地域別累積投資比率ではどの国が一番割合を占めているか。 日本 \n", "197 1312 circle 中国の数値は何%か 15 \n", "198 1397 circle 2021年の社内取締役比率は何%か 54.5 \n", "199 1398 circle 2022年の社内取締役比率は何%か 33.3 \n", "\n", " image \n", "0 {'bytes': b'\\x89PNG\\r\\n\\x1a\\n\\x00\\x00\\x00\\rIHD... \n", "1 {'bytes': b'\\x89PNG\\r\\n\\x1a\\n\\x00\\x00\\x00\\rIHD... \n", "2 {'bytes': b'\\x89PNG\\r\\n\\x1a\\n\\x00\\x00\\x00\\rIHD... \n", "3 {'bytes': b'\\x89PNG\\r\\n\\x1a\\n\\x00\\x00\\x00\\rIHD... \n", "4 {'bytes': b'\\x89PNG\\r\\n\\x1a\\n\\x00\\x00\\x00\\rIHD... \n", ".. ... \n", "195 {'bytes': b'\\x89PNG\\r\\n\\x1a\\n\\x00\\x00\\x00\\rIHD... \n", "196 {'bytes': b'\\x89PNG\\r\\n\\x1a\\n\\x00\\x00\\x00\\rIHD... \n", "197 {'bytes': b'\\x89PNG\\r\\n\\x1a\\n\\x00\\x00\\x00\\rIHD... \n", "198 {'bytes': b'\\x89PNG\\r\\n\\x1a\\n\\x00\\x00\\x00\\rIHD... \n", "199 {'bytes': b'\\x89PNG\\r\\n\\x1a\\n\\x00\\x00\\x00\\rIHD... \n", "\n", "[200 rows x 5 columns]" ] }, "execution_count": 9, "metadata": {}, "output_type": "execute_result" } ], "source": [ "output_df = merged_df.loc[:,['id','type','question','answer','image']]\n", "output_df" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "output_df.to_parquet(\"./jgraphqa.parquet\")" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "colab": { "provenance": [] }, "kernelspec": { "display_name": "Python 3", "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.12" } }, "nbformat": 4, "nbformat_minor": 0 }