diff --git a/201807_ETHPrize/ETHPrize_tagged_data_analysis.ipynb b/201807_ETHPrize/ETHPrize_tagged_data_analysis.ipynb index 0ba97b2..6c45155 100644 --- a/201807_ETHPrize/ETHPrize_tagged_data_analysis.ipynb +++ b/201807_ETHPrize/ETHPrize_tagged_data_analysis.ipynb @@ -586,7 +586,7 @@ " qtp.append((columns[col_idx], 'Answer'))\n", " qtp.append((columns[col_idx], 'Topics'))\n", " qtp.append((columns[col_idx], 'Projects'))\n", - " return pd.MultiIndex.from_tuples(qtp, names=('Questions', 'Answers_Topics_Projects'))\n", + " return pd.MultiIndex.from_tuples(qtp, names=('Questions', 'id'))\n", " " ] }, @@ -3349,7 +3349,7 @@ }, { "cell_type": "code", - "execution_count": 8, + "execution_count": 17, "metadata": {}, "outputs": [ { @@ -3379,14 +3379,6 @@ " Projects\n", " Topics\n", " \n", - " \n", - " Questions\n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", " \n", " \n", " \n", @@ -3884,7 +3876,6 @@ ], "text/plain": [ "Answers_Topics_Projects Questions \\\n", - "Questions \n", "0 Are there any other questions we should be ask... \n", "1 Are there any other questions we should be ask... \n", "2 Are there any other questions we should be ask... \n", @@ -3948,7 +3939,6 @@ "1455 Who are you and what are you working on? \n", "\n", "Answers_Topics_Projects Name \\\n", - "Questions \n", "0 (Fabio Berger + Remco Bloemen ,) \n", "1 (Leo Logvinov,) \n", "2 (Axel Ericsson,) \n", @@ -4012,7 +4002,6 @@ "1455 (Kames,) \n", "\n", "Answers_Topics_Projects Answer \\\n", - "Questions \n", "0 NaN \n", "1 NaN \n", "2 NaN \n", @@ -4076,7 +4065,6 @@ "1455 I am working on uPort as a community a manager... \n", "\n", "Answers_Topics_Projects Projects \\\n", - "Questions \n", "0 NaN \n", "1 NaN \n", "2 NaN \n", @@ -4140,7 +4128,6 @@ "1455 Ethereum, uPort \n", "\n", "Answers_Topics_Projects Topics \n", - "Questions \n", "0 NaN \n", "1 NaN \n", "2 NaN \n", @@ -4206,13 +4193,13 @@ "[1456 rows x 5 columns]" ] }, - "execution_count": 8, + "execution_count": 17, "metadata": {}, "output_type": "execute_result" } ], "source": [ - "cleaned = df.set_index('Name').unstack().unstack(level=1).reset_index().rename_axis('Questions')\n", + "cleaned = df.set_index('Name').unstack().unstack(level=1).reset_index(drop=True)\n", "cleaned" ] }, @@ -4225,7 +4212,7 @@ }, { "cell_type": "code", - "execution_count": 9, + "execution_count": 18, "metadata": {}, "outputs": [ { @@ -4249,24 +4236,18 @@ " \n", " \n", " Answers_Topics_Projects\n", + " index\n", " Name\n", " Questions\n", " Answer\n", " Topics\n", " Projects\n", " \n", - " \n", - " id\n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", " \n", " \n", " \n", " 0\n", + " 56\n", " Christopher Brown\n", " Are there any other questions we should be ask...\n", " NaN\n", @@ -4275,6 +4256,7 @@ " \n", " \n", " 1\n", + " 160\n", " Christopher Brown\n", " How do you handle smart contract verification ...\n", " NaN\n", @@ -4283,6 +4265,7 @@ " \n", " \n", " 2\n", + " 264\n", " Christopher Brown\n", " How do you handle testing?\n", " Just Truffle for tests\\nMocha for unit and fun...\n", @@ -4291,6 +4274,7 @@ " \n", " \n", " 3\n", + " 368\n", " Christopher Brown\n", " Other bounties?\n", " NaN\n", @@ -4299,6 +4283,7 @@ " \n", " \n", " 4\n", + " 472\n", " Christopher Brown\n", " Other domain specific questions?\n", " NaN\n", @@ -4307,6 +4292,7 @@ " \n", " \n", " 5\n", + " 576\n", " Christopher Brown\n", " Was anything easier than expected?\n", " NaN\n", @@ -4315,6 +4301,7 @@ " \n", " \n", " 6\n", + " 680\n", " Christopher Brown\n", " What are the best educational resources?\n", " NaN\n", @@ -4323,6 +4310,7 @@ " \n", " \n", " 7\n", + " 784\n", " Christopher Brown\n", " What are the tools/libraries/frameworks you use?\n", " Truffle for building, testing and compiling\\nC...\n", @@ -4331,6 +4319,7 @@ " \n", " \n", " 8\n", + " 888\n", " Christopher Brown\n", " What are you most excited about in the short t...\n", " Proof of Stake overlays will be really interes...\n", @@ -4339,6 +4328,7 @@ " \n", " \n", " 9\n", + " 992\n", " Christopher Brown\n", " What are your biggest frustrations?\n", " NaN\n", @@ -4347,6 +4337,7 @@ " \n", " \n", " 10\n", + " 1096\n", " Christopher Brown\n", " What tools don’t exist at the moment?\n", " The community is doing a good job and a lot of...\n", @@ -4355,6 +4346,7 @@ " \n", " \n", " 11\n", + " 1200\n", " Christopher Brown\n", " What was the hardest part about learning to de...\n", " Having a sequential getting started stuff on e...\n", @@ -4363,6 +4355,7 @@ " \n", " \n", " 12\n", + " 1304\n", " Christopher Brown\n", " Who are the other people you think we should t...\n", " NaN\n", @@ -4371,6 +4364,7 @@ " \n", " \n", " 13\n", + " 1408\n", " Christopher Brown\n", " Who are you and what are you working on?\n", " Full stack web dev, working in finance and som...\n", @@ -4379,6 +4373,7 @@ " \n", " \n", " 14\n", + " 45\n", " ANDREY PETROV\n", " Are there any other questions we should be ask...\n", " NaN\n", @@ -4387,6 +4382,7 @@ " \n", " \n", " 15\n", + " 149\n", " ANDREY PETROV\n", " How do you handle smart contract verification ...\n", " Write a lot of tests myself. Get other people ...\n", @@ -4395,6 +4391,7 @@ " \n", " \n", " 16\n", + " 253\n", " ANDREY PETROV\n", " How do you handle testing?\n", " NaN\n", @@ -4403,6 +4400,7 @@ " \n", " \n", " 17\n", + " 357\n", " ANDREY PETROV\n", " Other bounties?\n", " NaN\n", @@ -4411,6 +4409,7 @@ " \n", " \n", " 18\n", + " 461\n", " ANDREY PETROV\n", " Other domain specific questions?\n", " NaN\n", @@ -4419,6 +4418,7 @@ " \n", " \n", " 19\n", + " 565\n", " ANDREY PETROV\n", " Was anything easier than expected?\n", " NaN\n", @@ -4427,6 +4427,7 @@ " \n", " \n", " 20\n", + " 669\n", " ANDREY PETROV\n", " What are the best educational resources?\n", " NaN\n", @@ -4435,6 +4436,7 @@ " \n", " \n", " 21\n", + " 773\n", " ANDREY PETROV\n", " What are the tools/libraries/frameworks you use?\n", " Truffle - not his favourite, but best thing ou...\n", @@ -4443,6 +4445,7 @@ " \n", " \n", " 22\n", + " 877\n", " ANDREY PETROV\n", " What are you most excited about in the short t...\n", " What dev tools on near horizon that would chan...\n", @@ -4451,6 +4454,7 @@ " \n", " \n", " 23\n", + " 981\n", " ANDREY PETROV\n", " What are your biggest frustrations?\n", " Dapps: web3js stuff sucks. In the doc, it’s in...\n", @@ -4459,6 +4463,7 @@ " \n", " \n", " 24\n", + " 1085\n", " ANDREY PETROV\n", " What tools don’t exist at the moment?\n", " Things I want improved with truffle: it has a ...\n", @@ -4467,6 +4472,7 @@ " \n", " \n", " 25\n", + " 1189\n", " ANDREY PETROV\n", " What was the hardest part about learning to de...\n", " A lot of tooling that isn’t there. Ecosystem i...\n", @@ -4475,6 +4481,7 @@ " \n", " \n", " 26\n", + " 1293\n", " ANDREY PETROV\n", " Who are the other people you think we should t...\n", " Max Veytsman\\n\n", @@ -4483,6 +4490,7 @@ " \n", " \n", " 27\n", + " 1397\n", " ANDREY PETROV\n", " Who are you and what are you working on?\n", " https://thousandetherhomepage.com/\\n\n", @@ -4491,6 +4499,7 @@ " \n", " \n", " 28\n", + " 54\n", " Aaron Kumavis\n", " Are there any other questions we should be ask...\n", " NaN\n", @@ -4499,6 +4508,7 @@ " \n", " \n", " 29\n", + " 158\n", " Aaron Kumavis\n", " How do you handle smart contract verification ...\n", " NaN\n", @@ -4512,9 +4522,11 @@ " ...\n", " ...\n", " ...\n", + " ...\n", " \n", " \n", " 1426\n", + " 1333\n", " Yaniv Tal and Brandon Ramirez\n", " Who are the other people you think we should t...\n", " NaN\n", @@ -4523,6 +4535,7 @@ " \n", " \n", " 1427\n", + " 1437\n", " Yaniv Tal and Brandon Ramirez\n", " Who are you and what are you working on?\n", " Yaniv and Brandon from The Graph, query protoc...\n", @@ -4531,6 +4544,7 @@ " \n", " \n", " 1428\n", + " 72\n", " Yann Levreau\n", " Are there any other questions we should be ask...\n", " NaN\n", @@ -4539,6 +4553,7 @@ " \n", " \n", " 1429\n", + " 176\n", " Yann Levreau\n", " How do you handle smart contract verification ...\n", " NaN\n", @@ -4547,6 +4562,7 @@ " \n", " \n", " 1430\n", + " 280\n", " Yann Levreau\n", " How do you handle testing?\n", " NaN\n", @@ -4555,6 +4571,7 @@ " \n", " \n", " 1431\n", + " 384\n", " Yann Levreau\n", " Other bounties?\n", " Hard to make links between tools.\\nIf you want...\n", @@ -4563,6 +4580,7 @@ " \n", " \n", " 1432\n", + " 488\n", " Yann Levreau\n", " Other domain specific questions?\n", " NaN\n", @@ -4571,6 +4589,7 @@ " \n", " \n", " 1433\n", + " 592\n", " Yann Levreau\n", " Was anything easier than expected?\n", " NaN\n", @@ -4579,6 +4598,7 @@ " \n", " \n", " 1434\n", + " 696\n", " Yann Levreau\n", " What are the best educational resources?\n", " NaN\n", @@ -4587,6 +4607,7 @@ " \n", " \n", " 1435\n", + " 800\n", " Yann Levreau\n", " What are the tools/libraries/frameworks you use?\n", " Focussed on Remix and improving the UX:\\nRemix...\n", @@ -4595,6 +4616,7 @@ " \n", " \n", " 1436\n", + " 904\n", " Yann Levreau\n", " What are you most excited about in the short t...\n", " NaN\n", @@ -4603,6 +4625,7 @@ " \n", " \n", " 1437\n", + " 1008\n", " Yann Levreau\n", " What are your biggest frustrations?\n", " NaN\n", @@ -4611,6 +4634,7 @@ " \n", " \n", " 1438\n", + " 1112\n", " Yann Levreau\n", " What tools don’t exist at the moment?\n", " NaN\n", @@ -4619,6 +4643,7 @@ " \n", " \n", " 1439\n", + " 1216\n", " Yann Levreau\n", " What was the hardest part about learning to de...\n", " NaN\n", @@ -4627,6 +4652,7 @@ " \n", " \n", " 1440\n", + " 1320\n", " Yann Levreau\n", " Who are the other people you think we should t...\n", " NaN\n", @@ -4635,6 +4661,7 @@ " \n", " \n", " 1441\n", + " 1424\n", " Yann Levreau\n", " Who are you and what are you working on?\n", " Working on dev tools for the Foundation for th...\n", @@ -4643,6 +4670,7 @@ " \n", " \n", " 1442\n", + " 49\n", " Yondon Fu\n", " Are there any other questions we should be ask...\n", " Have we considered Grants, for longer-term thi...\n", @@ -4651,6 +4679,7 @@ " \n", " \n", " 1443\n", + " 153\n", " Yondon Fu\n", " How do you handle smart contract verification ...\n", " NaN\n", @@ -4659,6 +4688,7 @@ " \n", " \n", " 1444\n", + " 257\n", " Yondon Fu\n", " How do you handle testing?\n", " NaN\n", @@ -4667,6 +4697,7 @@ " \n", " \n", " 1445\n", + " 361\n", " Yondon Fu\n", " Other bounties?\n", " NaN\n", @@ -4675,6 +4706,7 @@ " \n", " \n", " 1446\n", + " 465\n", " Yondon Fu\n", " Other domain specific questions?\n", " NaN\n", @@ -4683,6 +4715,7 @@ " \n", " \n", " 1447\n", + " 569\n", " Yondon Fu\n", " Was anything easier than expected?\n", " NaN\n", @@ -4691,6 +4724,7 @@ " \n", " \n", " 1448\n", + " 673\n", " Yondon Fu\n", " What are the best educational resources?\n", " NaN\n", @@ -4699,6 +4733,7 @@ " \n", " \n", " 1449\n", + " 777\n", " Yondon Fu\n", " What are the tools/libraries/frameworks you use?\n", " NaN\n", @@ -4707,6 +4742,7 @@ " \n", " \n", " 1450\n", + " 881\n", " Yondon Fu\n", " What are you most excited about in the short t...\n", " NaN\n", @@ -4715,6 +4751,7 @@ " \n", " \n", " 1451\n", + " 985\n", " Yondon Fu\n", " What are your biggest frustrations?\n", " Livepeer that runs as Daemon, unlock your wall...\n", @@ -4723,6 +4760,7 @@ " \n", " \n", " 1452\n", + " 1089\n", " Yondon Fu\n", " What tools don’t exist at the moment?\n", " NaN\n", @@ -4731,6 +4769,7 @@ " \n", " \n", " 1453\n", + " 1193\n", " Yondon Fu\n", " What was the hardest part about learning to de...\n", " Smart contracts:\\nContract compilation time is...\n", @@ -4739,6 +4778,7 @@ " \n", " \n", " 1454\n", + " 1297\n", " Yondon Fu\n", " Who are the other people you think we should t...\n", " Guys at Aragon – Jorge or Oliver.\\nEthereum Na...\n", @@ -4747,6 +4787,7 @@ " \n", " \n", " 1455\n", + " 1401\n", " Yondon Fu\n", " Who are you and what are you working on?\n", " Previously: working on smart contracts.\\nTruff...\n", @@ -4755,76 +4796,74 @@ " \n", " \n", "\n", - "

1456 rows × 5 columns

\n", + "

1456 rows × 6 columns

\n", "" ], "text/plain": [ - "Answers_Topics_Projects Name \\\n", - "id \n", - "0 Christopher Brown \n", - "1 Christopher Brown \n", - "2 Christopher Brown \n", - "3 Christopher Brown \n", - "4 Christopher Brown \n", - "5 Christopher Brown \n", - "6 Christopher Brown \n", - "7 Christopher Brown \n", - "8 Christopher Brown \n", - "9 Christopher Brown \n", - "10 Christopher Brown \n", - "11 Christopher Brown \n", - "12 Christopher Brown \n", - "13 Christopher Brown \n", - "14 ANDREY PETROV \n", - "15 ANDREY PETROV \n", - "16 ANDREY PETROV \n", - "17 ANDREY PETROV \n", - "18 ANDREY PETROV \n", - "19 ANDREY PETROV \n", - "20 ANDREY PETROV \n", - "21 ANDREY PETROV \n", - "22 ANDREY PETROV \n", - "23 ANDREY PETROV \n", - "24 ANDREY PETROV \n", - "25 ANDREY PETROV \n", - "26 ANDREY PETROV \n", - "27 ANDREY PETROV \n", - "28 Aaron Kumavis \n", - "29 Aaron Kumavis \n", - "... ... \n", - "1426 Yaniv Tal and Brandon Ramirez \n", - "1427 Yaniv Tal and Brandon Ramirez \n", - "1428 Yann Levreau \n", - "1429 Yann Levreau \n", - "1430 Yann Levreau \n", - "1431 Yann Levreau \n", - "1432 Yann Levreau \n", - "1433 Yann Levreau \n", - "1434 Yann Levreau \n", - "1435 Yann Levreau \n", - "1436 Yann Levreau \n", - "1437 Yann Levreau \n", - "1438 Yann Levreau \n", - "1439 Yann Levreau \n", - "1440 Yann Levreau \n", - "1441 Yann Levreau \n", - "1442 Yondon Fu \n", - "1443 Yondon Fu \n", - "1444 Yondon Fu \n", - "1445 Yondon Fu \n", - "1446 Yondon Fu \n", - "1447 Yondon Fu \n", - "1448 Yondon Fu \n", - "1449 Yondon Fu \n", - "1450 Yondon Fu \n", - "1451 Yondon Fu \n", - "1452 Yondon Fu \n", - "1453 Yondon Fu \n", - "1454 Yondon Fu \n", - "1455 Yondon Fu \n", + "Answers_Topics_Projects index Name \\\n", + "0 56 Christopher Brown \n", + "1 160 Christopher Brown \n", + "2 264 Christopher Brown \n", + "3 368 Christopher Brown \n", + "4 472 Christopher Brown \n", + "5 576 Christopher Brown \n", + "6 680 Christopher Brown \n", + "7 784 Christopher Brown \n", + "8 888 Christopher Brown \n", + "9 992 Christopher Brown \n", + "10 1096 Christopher Brown \n", + "11 1200 Christopher Brown \n", + "12 1304 Christopher Brown \n", + "13 1408 Christopher Brown \n", + "14 45 ANDREY PETROV \n", + "15 149 ANDREY PETROV \n", + "16 253 ANDREY PETROV \n", + "17 357 ANDREY PETROV \n", + "18 461 ANDREY PETROV \n", + "19 565 ANDREY PETROV \n", + "20 669 ANDREY PETROV \n", + "21 773 ANDREY PETROV \n", + "22 877 ANDREY PETROV \n", + "23 981 ANDREY PETROV \n", + "24 1085 ANDREY PETROV \n", + "25 1189 ANDREY PETROV \n", + "26 1293 ANDREY PETROV \n", + "27 1397 ANDREY PETROV \n", + "28 54 Aaron Kumavis \n", + "29 158 Aaron Kumavis \n", + "... ... ... \n", + "1426 1333 Yaniv Tal and Brandon Ramirez \n", + "1427 1437 Yaniv Tal and Brandon Ramirez \n", + "1428 72 Yann Levreau \n", + "1429 176 Yann Levreau \n", + "1430 280 Yann Levreau \n", + "1431 384 Yann Levreau \n", + "1432 488 Yann Levreau \n", + "1433 592 Yann Levreau \n", + "1434 696 Yann Levreau \n", + "1435 800 Yann Levreau \n", + "1436 904 Yann Levreau \n", + "1437 1008 Yann Levreau \n", + "1438 1112 Yann Levreau \n", + "1439 1216 Yann Levreau \n", + "1440 1320 Yann Levreau \n", + "1441 1424 Yann Levreau \n", + "1442 49 Yondon Fu \n", + "1443 153 Yondon Fu \n", + "1444 257 Yondon Fu \n", + "1445 361 Yondon Fu \n", + "1446 465 Yondon Fu \n", + "1447 569 Yondon Fu \n", + "1448 673 Yondon Fu \n", + "1449 777 Yondon Fu \n", + "1450 881 Yondon Fu \n", + "1451 985 Yondon Fu \n", + "1452 1089 Yondon Fu \n", + "1453 1193 Yondon Fu \n", + "1454 1297 Yondon Fu \n", + "1455 1401 Yondon Fu \n", "\n", "Answers_Topics_Projects Questions \\\n", - "id \n", "0 Are there any other questions we should be ask... \n", "1 How do you handle smart contract verification ... \n", "2 How do you handle testing? \n", @@ -4888,7 +4927,6 @@ "1455 Who are you and what are you working on? \n", "\n", "Answers_Topics_Projects Answer \\\n", - "id \n", "0 NaN \n", "1 NaN \n", "2 Just Truffle for tests\\nMocha for unit and fun... \n", @@ -4952,7 +4990,6 @@ "1455 Previously: working on smart contracts.\\nTruff... \n", "\n", "Answers_Topics_Projects Topics \\\n", - "id \n", "0 NaN \n", "1 NaN \n", "2 unit tests, testing, functional tests, contact... \n", @@ -5016,7 +5053,6 @@ "1455 contracts, Go, video \n", "\n", "Answers_Topics_Projects Projects \n", - "id \n", "0 NaN \n", "1 NaN \n", "2 Truffle, Mocha, Mthril \n", @@ -5079,10 +5115,10 @@ "1454 Aragon, Open Zeppelin, 0x \n", "1455 Geth, EVM, Parity, POA, Truffle, Testrpc \n", "\n", - "[1456 rows x 5 columns]" + "[1456 rows x 6 columns]" ] }, - "execution_count": 9, + "execution_count": 18, "metadata": {}, "output_type": "execute_result" } @@ -5090,7 +5126,7 @@ "source": [ "cleaned['Name'] = cleaned['Name'].str.get(0)\n", "cleaned = cleaned.reindex(columns = ['Name', 'Questions', 'Answer', 'Topics', 'Projects'])\n", - "cleaned = cleaned.sort_values(['Name', 'Questions']).reset_index(drop = True).rename_axis('id')\n", + "cleaned = cleaned.sort_values(['Name', 'Questions']).reset_index(drop=True)\n", "cleaned" ] },