Skip to content

Commit

Permalink
La til spesifikt plot for Octavia: bensin/diesel med hk-begrensning
Browse files Browse the repository at this point in the history
  • Loading branch information
vegardkv committed Jul 13, 2017
1 parent 219fc32 commit 4fbe0d7
Show file tree
Hide file tree
Showing 6 changed files with 41,658 additions and 41,067 deletions.
1,115 changes: 847 additions & 268 deletions analyze.ipynb

Large diffs are not rendered by default.

10,200 changes: 5,100 additions & 5,100 deletions s-output-100-200.csv

Large diffs are not rendered by default.

10,096 changes: 5,048 additions & 5,048 deletions s-output-100.csv

Large diffs are not rendered by default.

20,398 changes: 10,199 additions & 10,199 deletions s-output-200-400.csv

Large diffs are not rendered by default.

40,790 changes: 20,395 additions & 20,395 deletions s-output-400-800.csv

Large diffs are not rendered by default.

126 changes: 69 additions & 57 deletions scrape2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 3,
"metadata": {
"collapsed": true
},
Expand Down Expand Up @@ -105,7 +105,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 4,
"metadata": {
"collapsed": true
},
Expand Down Expand Up @@ -144,7 +144,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 5,
"metadata": {
"collapsed": true
},
Expand Down Expand Up @@ -182,7 +182,7 @@
" print('Could not parse date: %s' % value)\n",
" continue\n",
" row_cp[key] = t.strftime(DATETIME_FORMATS[0])\n",
" elif key in ['tabled_Pris eks omreg', 'tabled_Omregistrering', 'tabled_Km.stand']:\n",
" elif key in ['tabled_Pris eks omreg', 'tabled_Omregistrering', 'tabled_Km.stand', 'tabled_Effekt']:\n",
" try:\n",
" row_cp[key] = int(re.sub(r\"\\D\", \"\", value))\n",
" except ValueError:\n",
Expand Down Expand Up @@ -211,7 +211,7 @@
"cell_type": "code",
"execution_count": 33,
"metadata": {
"scrolled": true
"collapsed": true
},
"outputs": [
{
Expand Down Expand Up @@ -21291,7 +21291,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 6,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -21705,6 +21705,7 @@
"Could not parse number: Inklusiv\n",
"Could not parse number: Fritatt\n",
"Could not parse number: Fritatt\n",
"Could not parse number: Fritatt\n",
"Could not parse number: Fritatt\n"
]
},
Expand All @@ -21721,7 +21722,6 @@
"Could not parse number: Fritatt\n",
"Could not parse number: Fritatt\n",
"Could not parse number: Fritatt\n",
"Could not parse number: Fritatt\n",
"Could not parse number: Ikke oppgitt\n",
"Could not parse number: Ikke oppgitt\n",
"Could not parse number: Fritatt\n",
Expand Down Expand Up @@ -22036,7 +22036,13 @@
"Could not parse number: Ikke oppgitt\n",
"Could not parse number: Inklusiv\n",
"Could not parse number: Fritatt\n",
"Could not parse number: Ikke oppgitt\n",
"Could not parse number: Ikke oppgitt\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Could not parse number: Inklusiv\n",
"Could not parse date: 05,11,2014\n",
"Could not parse number: Fritatt\n",
Expand Down Expand Up @@ -22396,13 +22402,7 @@
"Could not parse date: Juni 2003\n",
"Could not parse number: Fritatt\n",
"Could not parse number: Fritatt\n",
"Could not parse number: Fritatt\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Could not parse number: Fritatt\n",
"Could not parse number: Fritatt\n",
"Could not parse number: Fritatt\n",
"Could not parse number: Fritatt\n",
Expand Down Expand Up @@ -22575,7 +22575,13 @@
"Could not parse number: Fritatt\n",
"Could not parse number: Ikke oppgitt\n",
"Could not parse number: Fritatt\n",
"Could not parse number: Fritatt\n",
"Could not parse number: Fritatt\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Could not parse number: Inklusiv\n",
"Could not parse number: Fritatt\n",
"Could not parse number: Ikke oppgitt\n",
Expand Down Expand Up @@ -23045,7 +23051,13 @@
"Could not parse number: Fritatt\n",
"Could not parse number: Fritatt\n",
"Could not parse number: Fritatt\n",
"Could not parse number: Fritatt\n",
"Could not parse number: Fritatt\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Could not parse date: 19/3-12\n",
"Could not parse number: Fritatt\n",
"Could not parse number: Fritatt\n",
Expand Down Expand Up @@ -23197,13 +23209,7 @@
"Could not parse number: Inklusiv\n",
"Could not parse number: Fritatt\n",
"Could not parse number: Fritatt\n",
"Could not parse number: Fritatt\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Could not parse number: Fritatt\n",
"Could not parse number: Fritatt\n",
"Could not parse number: Fritatt\n",
"Could not parse number: Fritatt\n",
Expand Down Expand Up @@ -23319,7 +23325,13 @@
"Could not parse number: Fritatt\n",
"Could not parse number: Fritatt\n",
"Could not parse number: Ikke oppgitt\n",
"Could not parse number: Fritatt\n",
"Could not parse number: Fritatt\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Could not parse number: Fritatt\n",
"Could not parse number: Fritatt\n",
"Could not parse number: Fritatt\n",
Expand Down Expand Up @@ -23858,13 +23870,7 @@
"Could not parse number: Fritatt\n",
"Could not parse number: Fritatt\n",
"Could not parse number: Fritatt\n",
"Could not parse number: Fritatt\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Could not parse number: Fritatt\n",
"Could not parse number: Fritatt\n",
"Could not parse number: Fritatt\n",
"Could not parse number: Fritatt\n",
Expand Down Expand Up @@ -24066,7 +24072,13 @@
"Could not parse number: Fritatt\n",
"Could not parse number: Fritatt\n",
"Could not parse number: Ikke oppgitt\n",
"Could not parse number: Fritatt\n",
"Could not parse number: Fritatt\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Could not parse number: Fritatt\n",
"Could not parse number: Fritatt\n",
"Could not parse number: Fritatt\n",
Expand Down Expand Up @@ -24394,13 +24406,7 @@
"Could not parse number: Ikke oppgitt\n",
"Could not parse date: 27/09/2013\n",
"Could not parse number: Ikke oppgitt\n",
"Could not parse number: Inklusiv\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Could not parse number: Inklusiv\n",
"Could not parse number: Inklusiv\n",
"Could not parse number: Fritatt\n",
"Could not parse number: Fritatt\n",
Expand Down Expand Up @@ -24563,7 +24569,13 @@
"Could not parse number: Inklusiv\n",
"Could not parse number: Ikke oppgitt\n",
"Could not parse number: Inklusiv\n",
"Could not parse number: Fritatt\n",
"Could not parse number: Fritatt\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Could not parse number: Fritatt\n",
"Could not parse number: Fritatt\n",
"Could not parse number: Inklusiv\n",
Expand Down Expand Up @@ -24788,13 +24800,7 @@
"Could not parse number: Ikke oppgitt\n",
"Could not parse number: Ikke oppgitt\n",
"Could not parse number: Ikke oppgitt\n",
"Could not parse number: Fritatt\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Could not parse number: Fritatt\n",
"Could not parse number: Ikke oppgitt\n",
"Could not parse number: Inklusiv\n",
"Could not parse number: Fritatt\n",
Expand Down Expand Up @@ -24884,7 +24890,13 @@
"Could not parse date: 04,10,2011\n",
"Could not parse date: 22.07-2007\n",
"Could not parse number: Ikke oppgitt\n",
"Could not parse number: Fritatt\n",
"Could not parse number: Fritatt\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Could not parse number: Fritatt\n",
"Could not parse number: Ikke oppgitt\n",
"Could not parse number: Inklusiv\n",
Expand Down Expand Up @@ -25298,7 +25310,13 @@
"Could not parse date: 29/11/2016\n",
"Could not parse date: 19/01/2017\n",
"Could not parse number: Fritatt\n",
"Could not parse number: Fritatt\n",
"Could not parse number: Fritatt\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Could not parse number: Fritatt\n",
"Could not parse number: Fritatt\n",
"Could not parse number: Fritatt\n",
Expand Down Expand Up @@ -25786,13 +25804,7 @@
"Could not parse number: Inklusiv\n",
"Could not parse number: Inklusiv\n",
"Could not parse number: Inklusiv\n",
"Could not parse number: Inklusiv\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Could not parse number: Inklusiv\n",
"Could not parse number: Inklusiv\n",
"Could not parse number: Inklusiv\n",
"Could not parse number: Fritatt\n",
Expand Down

0 comments on commit 4fbe0d7

Please sign in to comment.