Skip to content

Commit

Permalink
slepá cesta scatterplotu
Browse files Browse the repository at this point in the history
  • Loading branch information
michalkasparek committed Nov 21, 2024
1 parent 1c77527 commit b8fce14
Show file tree
Hide file tree
Showing 18 changed files with 361,109 additions and 318,231 deletions.
6 changes: 2 additions & 4 deletions 002_cd_cisteni.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,8 @@
"name": "stdout",
"output_type": "stream",
"text": [
"cd_2024-11-18.parquet\n",
"2024-11-18: 791\n",
"cd_2024-11-19.parquet\n",
"2024-11-19: 818\n"
"cd_2024-11-20.parquet\n",
"2024-11-20: 787\n"
]
}
],
Expand Down
3 changes: 1 addition & 2 deletions 004_rj_cisteni.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1249,8 +1249,7 @@
"2024-11-03: 0\n",
"2024-11-04: 0\n",
"2024-11-05: 0\n",
"2024-11-18: 589\n",
"2024-11-19: 942\n"
"2024-11-20: 940\n"
]
}
],
Expand Down
3 changes: 1 addition & 2 deletions 006_le_cisteni.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"2024-11-18: 251\n",
"2024-11-19: 267\n"
"2024-11-20: 270\n"
]
}
],
Expand Down
13 changes: 10 additions & 3 deletions 008_ar_cisteni.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"text": [
"<>:11: SyntaxWarning: invalid escape sequence '\\d'\n",
"<>:11: SyntaxWarning: invalid escape sequence '\\d'\n",
"C:\\Users\\micha\\AppData\\Local\\Temp\\ipykernel_23756\\1036985530.py:11: SyntaxWarning: invalid escape sequence '\\d'\n",
"C:\\Users\\micha\\AppData\\Local\\Temp\\ipykernel_23232\\1036985530.py:11: SyntaxWarning: invalid escape sequence '\\d'\n",
" datum = re.search(\"\\d{1,2}\\.\\s\\w{4,15}\\s20\\d{2}\", radek).group(0)\n"
]
}
Expand Down Expand Up @@ -528,8 +528,7 @@
"2024-11-04: 0\n",
"2024-11-05: 0\n",
"2024-11-06: 0\n",
"2024-11-18: 726\n",
"2024-11-19: 761\n"
"2024-11-20: 723\n"
]
}
],
Expand All @@ -551,6 +550,14 @@
" df_den = pd.DataFrame(den)\n",
" df_den.to_parquet(os.path.join(kam,nazev_souboru))"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "f79048ec-4a91-439a-b762-508b414edb5d",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down
38 changes: 21 additions & 17 deletions 050_spojeni.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@
"3 2024-11-07 18:\n",
"4 2024-11-07 18:\n",
" ... \n",
"15064 2024-11-19 00:\n",
"15065 2024-11-19 00:\n",
"15066 2024-11-19 00:\n",
"15067 2024-11-19 18:\n",
"15068 2024-11-19 18:\n",
"Name: oscrapovano_minuty, Length: 1280960, dtype: object"
"15225 2024-11-20 10:\n",
"15226 2024-11-20 10:\n",
"15227 2024-11-20 00:\n",
"15228 2024-11-20 00:\n",
"15229 2024-11-20 00:\n",
"Name: oscrapovano_minuty, Length: 1363357, dtype: object"
]
},
"execution_count": 4,
Expand Down Expand Up @@ -87,7 +87,7 @@
{
"data": {
"text/plain": [
"619803"
"661211"
]
},
"execution_count": 6,
Expand Down Expand Up @@ -122,6 +122,7 @@
" 2024-11-17 3254\n",
" 2024-11-18 3310\n",
" 2024-11-19 3384\n",
" 2024-11-20 3393\n",
"LE 2024-11-07 332\n",
" 2024-11-08 1573\n",
" 2024-11-09 1873\n",
Expand All @@ -135,6 +136,7 @@
" 2024-11-17 2004\n",
" 2024-11-18 1988\n",
" 2024-11-19 2050\n",
" 2024-11-20 2042\n",
"RJ 2024-11-06 3676\n",
" 2024-11-07 1853\n",
" 2024-11-08 11164\n",
Expand All @@ -149,6 +151,7 @@
" 2024-11-17 13502\n",
" 2024-11-18 7927\n",
" 2024-11-19 14891\n",
" 2024-11-20 14477\n",
"ČD 2024-10-31 1325\n",
" 2024-11-01 13722\n",
" 2024-11-02 19225\n",
Expand All @@ -169,6 +172,7 @@
" 2024-11-17 21160\n",
" 2024-11-18 21754\n",
" 2024-11-19 22402\n",
" 2024-11-20 21496\n",
"dtype: int64"
]
},
Expand Down Expand Up @@ -264,14 +268,14 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Before: 39728667\n",
"After: 4943658\n",
"Before: 39735049\n",
"After: 4942154\n",
"Before: 41538598\n",
"After: 4934821\n",
"Before: 36332759\n",
"After: 4935141\n"
"Before: 42215968\n",
"After: 5251224\n",
"Before: 42212588\n",
"After: 5249720\n",
"Before: 44052596\n",
"After: 5242387\n",
"Before: 38610880\n",
"After: 5242707\n"
]
}
],
Expand Down Expand Up @@ -303,7 +307,7 @@
{
"data": {
"text/plain": [
"(548269, 26)"
"(582443, 26)"
]
},
"execution_count": 17,
Expand All @@ -324,7 +328,7 @@
{
"data": {
"text/plain": [
"(55875, 3)"
"(56715, 3)"
]
},
"execution_count": 18,
Expand Down
6 changes: 3 additions & 3 deletions 111_zahranici.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"outputs": [],
"source": [
"df = df[df['prostredek'] != 'autobus']\n",
"df = df[df['predstih_h'] > 0]"
"df = df[df['predstih_h'] >= 0]"
]
},
{
Expand Down Expand Up @@ -4705,7 +4705,7 @@
},
{
"cell_type": "code",
"execution_count": 855,
"execution_count": 1,
"id": "18fb580e-0208-4901-81e4-51e88962223e",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -4976,7 +4976,7 @@
" ajdy = line.split(\"'\")[1]\n",
" print(ajdy)\n",
" if \"type: 'arearange'\" in line:\n",
" line = line.replace(\" type: 'arearange'\",f\" type: 'arearange',linkedTo: '{ajdy}', fillOpacity: 0.3, lineWidth: 0,\")\n",
" line = line.replace(\" type: 'arearange'\",f\" type: 'arearange',linkedTo: '{ajdy}', fillOpacity: 0.3, lineWidth: 0\")\n",
" as_js_literal2.append(line)\n",
" as_js_literal2 = \"\\n\".join(as_js_literal2)\n",
" \n",
Expand Down
Loading

0 comments on commit b8fce14

Please sign in to comment.