{"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"name":"python","version":"3.10.14","mimetype":"text/x-python","codemirror_mode":{"name":"ipython","version":3},"pygments_lexer":"ipython3","nbconvert_exporter":"python","file_extension":".py"},"kaggle":{"accelerator":"nvidiaTeslaT4","dataSources":[{"sourceId":8565891,"sourceType":"datasetVersion","datasetId":5120988}],"dockerImageVersionId":30787,"isInternetEnabled":true,"language":"python","sourceType":"notebook","isGpuEnabled":true}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"code","source":"import numpy as np\nimport pandas as pd\nimport matplotlib.pyplot as plt\nimport seaborn as sns","metadata":{"trusted":true,"execution":{"iopub.status.busy":"2024-11-13T14:50:31.264095Z","iopub.execute_input":"2024-11-13T14:50:31.264479Z","iopub.status.idle":"2024-11-13T14:50:32.206343Z","shell.execute_reply.started":"2024-11-13T14:50:31.264428Z","shell.execute_reply":"2024-11-13T14:50:32.205200Z"}},"outputs":[],"execution_count":1},{"cell_type":"code","source":"df=pd.read_csv(\"/kaggle/input/quora-duplicate-questions-copy/train.csv\")","metadata":{"trusted":true,"execution":{"iopub.status.busy":"2024-11-13T14:50:32.208551Z","iopub.execute_input":"2024-11-13T14:50:32.209089Z","iopub.status.idle":"2024-11-13T14:50:33.491184Z","shell.execute_reply.started":"2024-11-13T14:50:32.209043Z","shell.execute_reply":"2024-11-13T14:50:33.490243Z"}},"outputs":[],"execution_count":2},{"cell_type":"code","source":"df.shape","metadata":{"trusted":true,"execution":{"iopub.status.busy":"2024-11-13T14:50:33.492390Z","iopub.execute_input":"2024-11-13T14:50:33.492718Z","iopub.status.idle":"2024-11-13T14:50:33.500694Z","shell.execute_reply.started":"2024-11-13T14:50:33.492683Z","shell.execute_reply":"2024-11-13T14:50:33.499576Z"}},"outputs":[{"execution_count":3,"output_type":"execute_result","data":{"text/plain":"(404290, 6)"},"metadata":{}}],"execution_count":3},{"cell_type":"code","source":"df.head()","metadata":{"trusted":true,"execution":{"iopub.status.busy":"2024-11-13T14:50:33.502151Z","iopub.execute_input":"2024-11-13T14:50:33.502497Z","iopub.status.idle":"2024-11-13T14:50:33.522540Z","shell.execute_reply.started":"2024-11-13T14:50:33.502459Z","shell.execute_reply":"2024-11-13T14:50:33.521526Z"}},"outputs":[{"execution_count":4,"output_type":"execute_result","data":{"text/plain":" id qid1 qid2 question1 \\\n0 0 1 2 What is the step by step guide to invest in sh... \n1 1 3 4 What is the story of Kohinoor (Koh-i-Noor) Dia... \n2 2 5 6 How can I increase the speed of my internet co... \n3 3 7 8 Why am I mentally very lonely? How can I solve... \n4 4 9 10 Which one dissolve in water quikly sugar, salt... \n\n question2 is_duplicate \n0 What is the step by step guide to invest in sh... 0 \n1 What would happen if the Indian government sto... 0 \n2 How can Internet speed be increased by hacking... 0 \n3 Find the remainder when [math]23^{24}[/math] i... 0 \n4 Which fish would survive in salt water? 0 ","text/html":"
\n | id | \nqid1 | \nqid2 | \nquestion1 | \nquestion2 | \nis_duplicate | \n
---|---|---|---|---|---|---|
0 | \n0 | \n1 | \n2 | \nWhat is the step by step guide to invest in sh... | \nWhat is the step by step guide to invest in sh... | \n0 | \n
1 | \n1 | \n3 | \n4 | \nWhat is the story of Kohinoor (Koh-i-Noor) Dia... | \nWhat would happen if the Indian government sto... | \n0 | \n
2 | \n2 | \n5 | \n6 | \nHow can I increase the speed of my internet co... | \nHow can Internet speed be increased by hacking... | \n0 | \n
3 | \n3 | \n7 | \n8 | \nWhy am I mentally very lonely? How can I solve... | \nFind the remainder when [math]23^{24}[/math] i... | \n0 | \n
4 | \n4 | \n9 | \n10 | \nWhich one dissolve in water quikly sugar, salt... | \nWhich fish would survive in salt water? | \n0 | \n
\n | question1 | \nquestion2 | \nis_duplicate | \n
---|---|---|---|
0 | \nwhat is the step by step guide to invest in sh... | \nwhat is the step by step guide to invest in sh... | \n0 | \n
1 | \nwhat is the story of kohinoor kohinoor diamond | \nwhat would happen if the indian government sto... | \n0 | \n
2 | \nhow can i increase the speed of my internet co... | \nhow can internet speed be increased by hacking... | \n0 | \n
3 | \nwhy am i mentally very lonely how can i solve it | \nfind the remainder when 2324math is divided by... | \n0 | \n
4 | \nwhich one dissolve in water quikly sugar salt ... | \nwhich fish would survive in salt water | \n0 | \n
... | \n... | \n... | \n... | \n
404285 | \nhow many keywords are there in the racket prog... | \nhow many keywords are there in perl programmin... | \n0 | \n
404286 | \ndo you believe there is life after death | \nis it true that there is life after death | \n1 | \n
404287 | \nwhat is one coin | \nwhat is this coin | \n0 | \n
404288 | \nwhat is the approx annual cost of living while... | \ni am having little hairfall problem but i want... | \n0 | \n
404289 | \nwhat is like to have sex with cousin | \nwhat is it like to have sex with your cousin | \n0 | \n
404287 rows × 3 columns
\n\n | question1 | \nquestion2 | \nis_duplicate | \nquestion | \n
---|---|---|---|---|
0 | \nwhat is the step by step guide to invest in sh... | \nwhat is the step by step guide to invest in sh... | \n0 | \nwhat is the step by step guide to invest in sh... | \n
1 | \nwhat is the story of kohinoor kohinoor diamond | \nwhat would happen if the indian government sto... | \n0 | \nwhat is the story of kohinoor kohinoor diamond... | \n
2 | \nhow can i increase the speed of my internet co... | \nhow can internet speed be increased by hacking... | \n0 | \nhow can i increase the speed of my internet co... | \n
3 | \nwhy am i mentally very lonely how can i solve it | \nfind the remainder when 2324math is divided by... | \n0 | \nwhy am i mentally very lonely how can i solve ... | \n
4 | \nwhich one dissolve in water quikly sugar salt ... | \nwhich fish would survive in salt water | \n0 | \nwhich one dissolve in water quikly sugar salt ... | \n
... | \n... | \n... | \n... | \n... | \n
404285 | \nhow many keywords are there in the racket prog... | \nhow many keywords are there in perl programmin... | \n0 | \nhow many keywords are there in the racket prog... | \n
404286 | \ndo you believe there is life after death | \nis it true that there is life after death | \n1 | \ndo you believe there is life after death ; is ... | \n
404287 | \nwhat is one coin | \nwhat is this coin | \n0 | \nwhat is one coin ; what is this coin | \n
404288 | \nwhat is the approx annual cost of living while... | \ni am having little hairfall problem but i want... | \n0 | \nwhat is the approx annual cost of living while... | \n
404289 | \nwhat is like to have sex with cousin | \nwhat is it like to have sex with your cousin | \n0 | \nwhat is like to have sex with cousin ; what is... | \n
404287 rows × 4 columns
\n\n | is_duplicate | \nquestion | \n
---|---|---|
0 | \n0 | \nwhat is the step by step guide to invest in sh... | \n
1 | \n0 | \nwhat is the story of kohinoor kohinoor diamond... | \n
2 | \n0 | \nhow can i increase the speed of my internet co... | \n
3 | \n0 | \nwhy am i mentally very lonely how can i solve ... | \n
4 | \n0 | \nwhich one dissolve in water quikly sugar salt ... | \n
... | \n... | \n... | \n
404285 | \n0 | \nhow many keywords are there in the racket prog... | \n
404286 | \n1 | \ndo you believe there is life after death ; is ... | \n
404287 | \n0 | \nwhat is one coin ; what is this coin | \n
404288 | \n0 | \nwhat is the approx annual cost of living while... | \n
404289 | \n0 | \nwhat is like to have sex with cousin ; what is... | \n
404287 rows × 2 columns
\n