Revisions
-
aleksas revised this gist
Oct 8, 2016 . 1 changed file with 4 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1033,19 +1033,19 @@ " # + Nemoka anglų kalbos: -4 balai\n", " res['Nemoka anglų kalbos'] = (data['anglų kalba'] - 1) * 4\n", " # + Moka daugiau kalbų (be anglų ir rusų): +2 balai už kiekvieną kalbą\n", " res['Moka daugiau kalbų (be anglų ir rusų)'] = data['kitos kalbos'] * 0\n", " # + Neturi aukštojo išsilavinimo: -6 balai\n", " res['Neturi aukštojo išsilavinimo'] = (data['aukštasis išsilavinimas'] - 1) * 6\n", " # + Turi magistro aukštąjį išsilavinimą: +2 balai\n", " res['Turi magistro aukštąjį išsilavinimą'] = data.magistras * 2\n", " # + Turi mokslų daktaro laipsnį: +4 balai\n", " res['Turi mokslų daktaro laipsnį'] = data.daktaras * 0\n", " # - Turi tik sovietinį aukštąjį išsilavinimą: -3 balai\n", " #\n", " # + Turi aukštąjį išsilavinimą užsienio universitete: +3 balai\n", " res['Turi aukštąjį išsilavinimą užsienio universitete'] = data['tarptautinis išsilavinimas'] * 1\n", " # + Išsilavinimas nesusijęs su teise, politika ar vadyba: -1 balas\n", " res['Išsilavinimas nesusijęs su teise, politika ar vadyba'] = (data['tinkamas išsilavinimas'] - 1) * 0\n", " # + Ėjo aukštas pareigas sovietiniame režime: -3 balai\n", " res['Ėjo aukštas pareigas sovietiniame režime'] = data.komunistas * -3\n", " # - Turi patirties valstybės tarnyboje ar viešajame sektoriuje užsienyje: nuo -3\n", -
sirex revised this gist
Oct 8, 2016 . 1 changed file with 247 additions and 247 deletions.There are no files selected for viewing
-
sirex revised this gist
Oct 7, 2016 . 1 changed file with 262 additions and 253 deletions.There are no files selected for viewing
-
sirex revised this gist
Oct 7, 2016 . 1 changed file with 11 additions and 12 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -246,7 +246,7 @@ }, { "cell_type": "code", "execution_count": 189, "metadata": { "collapsed": false }, @@ -255,7 +255,7 @@ "name": "stderr", "output_type": "stream", "text": [ "anketos-puslapis -> anketa: 100%|██████████| 1415/1415 [00:26<00:00, 52.53it/s]\n" ] } ], @@ -265,7 +265,7 @@ " return ' '.join(value)\n", "\n", "with questions_page:\n", " questions.clean().reset().select([\n", " 'body > div[3] > table > tr', (\n", " databot.row.key, {\n", " 'klausimas': join(['xpath:./td/text()']),\n", @@ -277,7 +277,7 @@ }, { "cell_type": "code", "execution_count": 188, "metadata": { "collapsed": false }, @@ -286,7 +286,7 @@ "name": "stderr", "output_type": "stream", "text": [ "anketos-puslapis -> nuotrauka: 100%|██████████| 1415/1415 [00:17<00:00, 82.98it/s]\n" ] } ], @@ -300,12 +300,10 @@ " return imghdr.what(None, blob)\n", "\n", "with questions_page:\n", " photo.clean().reset().select(databot.row.key, {\n", " 'body': decode_photo('body > div[1] img@src?'),\n", " 'type': detect_image_type(decode_photo('body > div[1] img@src?')),\n", " })" ] }, { @@ -1174,7 +1172,8 @@ "cell_type": "code", "execution_count": 163, "metadata": { "collapsed": false, "scrolled": true }, "outputs": [ { -
sirex revised this gist
Oct 7, 2016 . 1 changed file with 2200 additions and 1819 deletions.There are no files selected for viewing
-
sirex created this gist
Oct 6, 2016 .There are no files selected for viewing