{ "cells": [ { "cell_type": "code", "execution_count": 9, "metadata": {}, "outputs": [], "source": [ "import pandas as pd\n", "a = pd.read_parquet(\"data/test.parquet\")\n", "b = pd.read_parquet(\"data/passages.parquet\")" ] }, { "cell_type": "code", "execution_count": 13, "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", "
questionanswerrelevant_passage_ids
id
0Is Hirschsprung disease a mendelian or a multi...Coding sequence mutations in RET, GDNF, EDNRB,...[20598273, 6650562, 15829955, 15617541, 230011...
1List signaling molecules (ligands) that intera...The 7 known EGFR ligands are: epidermal growt...[23821377, 24323361, 23382875, 22247333, 23787...
2Is the protein Papilin secreted?Yes, papilin is a secreted protein[21784067, 19297413, 15094122, 7515725, 332004...
3Are long non coding RNAs spliced?Long non coding RNAs appear to be spliced thro...[22955974, 21622663, 22707570, 22955988, 24285...
4Is RANKL secreted from the cells?Receptor activator of nuclear factor κB ligand...[22867712, 23827649, 21618594, 23835909, 24265...
............
4714Is PPROM a condition that occurs in males or f...Preterm premature rupture of fetal membranes (...[23599878, 23573382, 24304137, 18301713, 23179...
4715What is EpiMethylTag?EpiMethylTag is a fast, low-input, low sequenc...[31752933]
4716What is the target of Sutimlimab?Sutimlimab is a novel humanized monoclonal ant...[30635392, 31229501, 33826820, 32176765, 31114...
4717Can parasite infections by Schistosoma japonic...A peptide named as SJMHE1 from Schistosoma jap...[26840774, 34703270, 28614408, 31496071, 18654...
4718Describe Multilocus Inherited Neoplasia Allele...Genetic testing of hereditary cancer using com...[30580288]
\n", "

4719 rows × 3 columns

\n", "
" ], "text/plain": [ " question \\\n", "id \n", "0 Is Hirschsprung disease a mendelian or a multi... \n", "1 List signaling molecules (ligands) that intera... \n", "2 Is the protein Papilin secreted? \n", "3 Are long non coding RNAs spliced? \n", "4 Is RANKL secreted from the cells? \n", "... ... \n", "4714 Is PPROM a condition that occurs in males or f... \n", "4715 What is EpiMethylTag? \n", "4716 What is the target of Sutimlimab? \n", "4717 Can parasite infections by Schistosoma japonic... \n", "4718 Describe Multilocus Inherited Neoplasia Allele... \n", "\n", " answer \\\n", "id \n", "0 Coding sequence mutations in RET, GDNF, EDNRB,... \n", "1 The 7 known EGFR ligands are: epidermal growt... \n", "2 Yes, papilin is a secreted protein \n", "3 Long non coding RNAs appear to be spliced thro... \n", "4 Receptor activator of nuclear factor κB ligand... \n", "... ... \n", "4714 Preterm premature rupture of fetal membranes (... \n", "4715 EpiMethylTag is a fast, low-input, low sequenc... \n", "4716 Sutimlimab is a novel humanized monoclonal ant... \n", "4717 A peptide named as SJMHE1 from Schistosoma jap... \n", "4718 Genetic testing of hereditary cancer using com... \n", "\n", " relevant_passage_ids \n", "id \n", "0 [20598273, 6650562, 15829955, 15617541, 230011... \n", "1 [23821377, 24323361, 23382875, 22247333, 23787... \n", "2 [21784067, 19297413, 15094122, 7515725, 332004... \n", "3 [22955974, 21622663, 22707570, 22955988, 24285... \n", "4 [22867712, 23827649, 21618594, 23835909, 24265... \n", "... ... \n", "4714 [23599878, 23573382, 24304137, 18301713, 23179... \n", "4715 [31752933] \n", "4716 [30635392, 31229501, 33826820, 32176765, 31114... \n", "4717 [26840774, 34703270, 28614408, 31496071, 18654... \n", "4718 [30580288] \n", "\n", "[4719 rows x 3 columns]" ] }, "execution_count": 13, "metadata": {}, "output_type": "execute_result" } ], "source": [ "a" ] }, { "cell_type": "code", "execution_count": 11, "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", "
passage
id
21495810OBJECT: Factors determining choice of an acade...
26869762Castleman disease (CD) is a rare, heterogeneou...
28049410BACKGROUND: Data extraction and integration me...
24510469Flecainide is recommended as a first-line anti...
8650761Primary intestinal lymphangiectasia (PIL), fir...
\n", "
" ], "text/plain": [ " passage\n", "id \n", "21495810 OBJECT: Factors determining choice of an acade...\n", "26869762 Castleman disease (CD) is a rare, heterogeneou...\n", "28049410 BACKGROUND: Data extraction and integration me...\n", "24510469 Flecainide is recommended as a first-line anti...\n", "8650761 Primary intestinal lymphangiectasia (PIL), fir..." ] }, "execution_count": 11, "metadata": {}, "output_type": "execute_result" } ], "source": [ "b" ] } ], "metadata": { "kernelspec": { "display_name": "env", "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.12" } }, "nbformat": 4, "nbformat_minor": 2 }