Add files via upload

This commit is contained in:
Peter Norvig
2021-04-05 23:25:13 -07:00
committed by GitHub
parent 8becadb2aa
commit 3242eccf6a
4 changed files with 2156 additions and 1808 deletions

File diff suppressed because one or more lines are too long

View File

@@ -13,7 +13,7 @@
},
{
"cell_type": "code",
"execution_count": 28,
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
@@ -41,7 +41,7 @@
},
{
"cell_type": "code",
"execution_count": 42,
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
@@ -64,7 +64,7 @@
},
{
"cell_type": "code",
"execution_count": 43,
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
@@ -72,244 +72,6 @@
" converters=dict(hours=parse_hours, feet=parse_int)))"
]
},
{
"cell_type": "code",
"execution_count": 44,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>date</th>\n",
" <th>year</th>\n",
" <th>title</th>\n",
" <th>hours</th>\n",
" <th>miles</th>\n",
" <th>feet</th>\n",
" <th>mph</th>\n",
" <th>vam</th>\n",
" <th>fpm</th>\n",
" <th>pct</th>\n",
" <th>kms</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>Sun, 3/14</td>\n",
" <td>2021</td>\n",
" <td>Fremont / Union City</td>\n",
" <td>5.3131</td>\n",
" <td>69.58</td>\n",
" <td>1552</td>\n",
" <td>13.10</td>\n",
" <td>292.0</td>\n",
" <td>22.0</td>\n",
" <td>0.42</td>\n",
" <td>111.95</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>Fri, 3/12</td>\n",
" <td>2021</td>\n",
" <td>Santa Clara</td>\n",
" <td>5.1606</td>\n",
" <td>69.49</td>\n",
" <td>1138</td>\n",
" <td>13.47</td>\n",
" <td>221.0</td>\n",
" <td>16.0</td>\n",
" <td>0.31</td>\n",
" <td>111.81</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>Sun, 2/7</td>\n",
" <td>2021</td>\n",
" <td>Saratoga / Campbell</td>\n",
" <td>5.8925</td>\n",
" <td>78.38</td>\n",
" <td>2270</td>\n",
" <td>13.30</td>\n",
" <td>385.0</td>\n",
" <td>29.0</td>\n",
" <td>0.55</td>\n",
" <td>126.11</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>Fri, 1/8</td>\n",
" <td>2021</td>\n",
" <td>Coyote Hills Geocaching</td>\n",
" <td>4.9689</td>\n",
" <td>69.08</td>\n",
" <td>797</td>\n",
" <td>13.90</td>\n",
" <td>160.0</td>\n",
" <td>12.0</td>\n",
" <td>0.22</td>\n",
" <td>111.15</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>Sun, 10/11</td>\n",
" <td>2020</td>\n",
" <td>Los Altos Hills Paths</td>\n",
" <td>5.8247</td>\n",
" <td>65.03</td>\n",
" <td>1870</td>\n",
" <td>11.16</td>\n",
" <td>321.0</td>\n",
" <td>29.0</td>\n",
" <td>0.54</td>\n",
" <td>104.63</td>\n",
" </tr>\n",
" <tr>\n",
" <th>...</th>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>474</th>\n",
" <td>Sun, 6/23</td>\n",
" <td>2013</td>\n",
" <td>Climb</td>\n",
" <td>2.2747</td>\n",
" <td>24.30</td>\n",
" <td>2001</td>\n",
" <td>10.68</td>\n",
" <td>880.0</td>\n",
" <td>82.0</td>\n",
" <td>1.56</td>\n",
" <td>39.10</td>\n",
" </tr>\n",
" <tr>\n",
" <th>475</th>\n",
" <td>Sat, 7/13</td>\n",
" <td>2013</td>\n",
" <td>Doug's Event</td>\n",
" <td>1.8653</td>\n",
" <td>21.35</td>\n",
" <td>1677</td>\n",
" <td>11.45</td>\n",
" <td>899.0</td>\n",
" <td>79.0</td>\n",
" <td>1.49</td>\n",
" <td>34.35</td>\n",
" </tr>\n",
" <tr>\n",
" <th>476</th>\n",
" <td>Sun, 8/4</td>\n",
" <td>2013</td>\n",
" <td>Kris's first trike ride</td>\n",
" <td>1.8558</td>\n",
" <td>20.96</td>\n",
" <td>988</td>\n",
" <td>11.29</td>\n",
" <td>532.0</td>\n",
" <td>47.0</td>\n",
" <td>0.89</td>\n",
" <td>33.72</td>\n",
" </tr>\n",
" <tr>\n",
" <th>477</th>\n",
" <td>Sun, 11/24</td>\n",
" <td>2013</td>\n",
" <td>Alpine Rd</td>\n",
" <td>1.7100</td>\n",
" <td>21.02</td>\n",
" <td>1289</td>\n",
" <td>12.29</td>\n",
" <td>754.0</td>\n",
" <td>61.0</td>\n",
" <td>1.16</td>\n",
" <td>33.82</td>\n",
" </tr>\n",
" <tr>\n",
" <th>478</th>\n",
" <td>Fri, 11/29</td>\n",
" <td>2013</td>\n",
" <td>Woodside Loop</td>\n",
" <td>1.5600</td>\n",
" <td>22.75</td>\n",
" <td>1011</td>\n",
" <td>14.58</td>\n",
" <td>648.0</td>\n",
" <td>44.0</td>\n",
" <td>0.84</td>\n",
" <td>36.60</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"<p>479 rows × 11 columns</p>\n",
"</div>"
],
"text/plain": [
" date year title hours miles feet mph \\\n",
"0 Sun, 3/14 2021 Fremont / Union City 5.3131 69.58 1552 13.10 \n",
"1 Fri, 3/12 2021 Santa Clara 5.1606 69.49 1138 13.47 \n",
"2 Sun, 2/7 2021 Saratoga / Campbell 5.8925 78.38 2270 13.30 \n",
"3 Fri, 1/8 2021 Coyote Hills Geocaching 4.9689 69.08 797 13.90 \n",
"4 Sun, 10/11 2020 Los Altos Hills Paths 5.8247 65.03 1870 11.16 \n",
".. ... ... ... ... ... ... ... \n",
"474 Sun, 6/23 2013 Climb 2.2747 24.30 2001 10.68 \n",
"475 Sat, 7/13 2013 Doug's Event 1.8653 21.35 1677 11.45 \n",
"476 Sun, 8/4 2013 Kris's first trike ride 1.8558 20.96 988 11.29 \n",
"477 Sun, 11/24 2013 Alpine Rd 1.7100 21.02 1289 12.29 \n",
"478 Fri, 11/29 2013 Woodside Loop 1.5600 22.75 1011 14.58 \n",
"\n",
" vam fpm pct kms \n",
"0 292.0 22.0 0.42 111.95 \n",
"1 221.0 16.0 0.31 111.81 \n",
"2 385.0 29.0 0.55 126.11 \n",
"3 160.0 12.0 0.22 111.15 \n",
"4 321.0 29.0 0.54 104.63 \n",
".. ... ... ... ... \n",
"474 880.0 82.0 1.56 39.10 \n",
"475 899.0 79.0 1.49 34.35 \n",
"476 532.0 47.0 0.89 33.72 \n",
"477 754.0 61.0 1.16 33.82 \n",
"478 648.0 44.0 0.84 36.60 \n",
"\n",
"[479 rows x 11 columns]"
]
},
"execution_count": 44,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"rides"
]
},
{
"cell_type": "markdown",
"metadata": {},
@@ -325,7 +87,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
@@ -340,7 +102,7 @@
},
{
"cell_type": "code",
"execution_count": 15,
"execution_count": 5,
"metadata": {},
"outputs": [],
"source": [
@@ -364,7 +126,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 6,
"metadata": {},
"outputs": [],
"source": [
@@ -397,11 +159,11 @@
" plt.title(category); plt.tight_layout(); grid(axis='y'); plt.show()\n",
" \n",
"def label(pcts, place, miles) -> str:\n",
" pct = f'{rounded(pcts[-1]):>3}' if pcts[-1] > 1 else f'{pcts[-1]}'\n",
" pct = f'{rounded(pcts[-1]):>3}' if pcts[-1] > 1.4 else f'{pcts[-1]}'\n",
" done = miles * pcts[-1]\n",
" bonus = next((f' {rounded((p - pcts[-1]) / 100 * miles):>3} to {p}%' \n",
" for p in bonuses if p >= pcts[-1]), '')\n",
" return f'{pct}% ({rounded(done / 100):>3}/{rounded(miles):>3} mi){bonus} {place}'\n",
" return f'{pct}% ({rounded(done / 100):>3}/{rounded(miles):<3} mi){bonus} {place}'\n",
" \n",
"def parse_places(lines) -> Dict[str, List[Entry]]:\n",
" \"Parse bikeplaces.txt into a dict of {'Title': [entry,...]}\"\n",
@@ -440,7 +202,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 7,
"metadata": {},
"outputs": [],
"source": [
@@ -456,7 +218,7 @@
},
{
"cell_type": "code",
"execution_count": 17,
"execution_count": 8,
"metadata": {},
"outputs": [],
"source": [
@@ -490,7 +252,7 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": 9,
"metadata": {},
"outputs": [],
"source": [
@@ -523,7 +285,7 @@
" \"\"\"Given a ride distance in miles and total climb in feet, estimate time in minutes.\"\"\"\n",
" return 60 * miles / estimator(feet / miles)\n",
"\n",
"def sort(frame, field): return frame.sort_values(field, ascending=False)"
"def top(frame, field, n=20): return frame.sort_values(field, ascending=False).head(n)"
]
}
],

View File

@@ -1,12 +1,12 @@
:Around 90%:
Los Altos: 138: 40.2 43.7 72.4 77.2 84.5 90.8 | 91.0*3
Los Altos: 138: 40.2 43.7 72.4 77.2 84.5 90.8 | 91.0*2 91.1
Atherton: 55.7: 0*4 91.2 94.0 | 95.2*2 94.2
East Palo Alto: 46.5: 74.4 91.2 91.9*2 92.2 93.3 | 93.4*2 92.4
Emerald Lake Hills: 24.4: 0.0 94.3*3 44.7 51.0 | 80.0 85.8 91.3
Menlo Park: 136.4: 67.7 76.8 87.7 90.7 91.2 90.1 | 92.5*2 91.4
North Fair Oaks: 26.8: 48.1 90.4 93.1 93.8 94.8 96.1 | 96.9*2 98.9
Mountain View: 205: 53.0 59.9 63.0 63.6 72.9 77.1 | 91.1*3
Palo Alto: 292: 63.0 73.6 85.4 85.7 87.1 87.6 | 88.1*2 90.2
Palo Alto: 292: 63.0 73.6 85.4 85.7 87.1 87.6 | 88.1*2 90.3
:Around 25%:
Belmont: 98.1: 15.5 17.3 18.6 18.6 20.6*2 | 27.4*2 27.5
@@ -18,7 +18,7 @@ San Mateo: 256: 11.1*6 | 11.3 25.5 27.8
Saratoga: 180: 14.5 15.7 17.4*4 | 17.4 26.9*2
Sunnyvale: 357: 19.4 19.9 22.2*4 | 25.1*3
Union City: 207: 7*3 8*3 | 8.8*2 25.7
Fremont: 771: 9*3 10*3 | 11.7*2 25.9
Fremont: 771: 9*3 10*3 | 11.7*2 27.5
San Mateo Highlands: 18: 0*6 | 18.0 29.2*2
:Between 30% and 80%:
@@ -28,7 +28,7 @@ Los Altos Hills: 91: 48.4*2 49.0 55.1*2 55.4 | 55.8*3
Loyola: 18.3: 0*4 60.8 62.1 | 62.1*3
Millbrae: 65: 0*6 | 0 18.4 31.6
Monte Sereno: 20.4: 20.5*6 | 20.5 39.8*2
Portola Valley: 59: 0*4 57.3 59.8 | 59.8*3
Portola Valley: 59: 0*4 57.3 59.8 | 59.8*2 61.0
Redwood City: 235.1: 34.0 39.1 46.0 51.6 56.9 60.8 | 62.9*2 65.1
San Carlos: 99: 22.2 26.0 32.9 32.9 37.2 39.0 | 40.5*2 41.4
Woodside: 75.2: 51.9*2 52.3*3 54.0 | 56.1*3
@@ -42,11 +42,12 @@ Hayward: 446.3: 0*6 | 4.6*3
Milpitas: 224: 2.2*4 4.4*2 | 4.4*3
San Jose: 2543: 1.3 1.36 5.3*4 | 5.4*3
Berkeley: 260: 5.0*3 7.0*3 | 7.0*3
San Bruno: 114: 0*6 | 0*2 7.5
:Small Neighborhoods (under 12 road miles):
Burlingame Hills: 6: 0*6 | 0.8 34.5*2
Kensington Square: 0.6: 86.9 100*5 | 100*3
Ladera: 8.0: 0*4 30.5 29.8 | 29.8*3
Ladera: 8.0: 0*4 30.5 29.8 | 29.8*2 47.6
Los Trancos Woods: 5.4: 0*4 71.4*2 | 71.4*3
Menlo Oaks: 3.6: 0*4 98.4 99.7 | 99.7*3
Palomar Park: 3.9: 0*6 | 91.1*2 94.9
@@ -87,9 +88,9 @@ Guerneville, Sonoma: 22.7: 23.4*6 | 23.4*3
Healdsburg, Sonoma: 53.7: 18.5*6 | 18.5*3
:California Counties:
San Mateo: 3248: 20.1 21.2 22.9 23.4 24.57 25.53 | 26.43 30.0 31.17
Santa Clara: 7396: 12.7 13.6 15.4 15.6 16.04 16.29 | 16.78 17.73 18.14
Alameda: 5704: 3.3*3 3.94*3 | 4.73*2 6.84
San Mateo: 3248: 20.1 21.2 22.9 23.4 24.57 25.53 | 26.43 30.0 31.27
Santa Clara: 7396: 12.7 13.6 15.4 15.6 16.04 16.29 | 16.78 17.73 18.15
Alameda: 5704: 3.3*3 3.94*3 | 4.73*2 7.06
Marin: 2322: 6.7*6 | 6.7*3
Napa: 1524: 5.1*6 | 5.1*3
Sonoma: 4556: 5.1*6 | 5.1*3
@@ -97,6 +98,6 @@ San Francisco: 1183: 4.5*6 | 4.5*3
Santa Cruz: 2767: 2.3*6 | 2.3*3
:Large Places (over 300,000 road miles):
California: 365188: .712 .811 .846 .867 .8875 .8873 | .9054 .9624 1.0067
USA: 6317607: .048 .052 .055 .05589 .0571 .05749 | .05853 .06183 .06425
Earth: 38609276: .008 .0089 .0091 .00936 .009535 .009426| .009597 .010136 .010356
California: 365188: .712 .811 .846 .867 .8875 .8873 | .9054 .9624 1.0289
USA: 6317607: .048 .052 .055 .05589 .0571 .05749 | .05853 .06183 .06553
Earth: 38609276: .008 .0089 .0091 .00936 .009535 .009426| .009597 .010136 .010561

View File

@@ -1,5 +1,12 @@
date year title hours miles feet
##### 2019-2021: Mostly Eddington rides; most recent first
Sun, 4/4 2021 Everesting 7: Mill Creek / Morrison Canyon 3:04:46 29.38 3,517
Sat, 4/3 2021 Everesting 6: OLH / West Alpine 4:26:16 46.64 4,400
Fri, 4/2 2021 Everesting 5: climb 2×(OLH + WOLH) 3:16:30 31.48 4,344
Thu, 4/1 2021 Everesting 4: Kings / Tunitas / Bike Hut 4:40:36 45.57 4,452
Wed, 3/31 2021 Everesting 3: Ring of Fire + Ladera 4:40:59 45.78 4,544
Tue, 3/30 2021 Everesting 2: Kings + WOLH + OLH 3:20:29 35.99 4,377
Mon, 3/29 2021 Everesting 1: Mt Diablo 2:35:47 22.22 3,406
Sun, 3/14 2021 Fremont / Union City 5:18:47 69.58 1552
Fri, 3/12 2021 Santa Clara 5:09:38 69.49 1138
Sun, 2/7 2021 Saratoga / Campbell 5:53:33 78.38 2270
@@ -103,7 +110,7 @@ Sun, 6/9 2013 Silicon Valley Tour de Cure 75K 3:58:37 51.63 2,929
Sun, 9/3 2017 Morning Ride 4:22:45 51.31 2,526
Mon, 7/27 2015 Palo Alto Cycling 3:48:23 50.93 1,306
Wed, 7/29 2015 Palo Alto, CA 3:47:53 50.92 1,873
Sun, 6/26 2016 Afternoon Ride 3:16:33 50.78 1,181
Sun, 6/26 2016 Los Gatos 3:16:33 50.78 1,181
Mon, 8/10 2015 Palo Alto, CA 3:41:54 50.73 1,325
Sat, 10/15 2016 Los Gatos 3:28:16 50.64 1,368
Tue, 12/19 2017 Los Gatos 3:46:37 50.49 1,929
@@ -150,7 +157,7 @@ Sun, 5/15 2016 Afternoon Ride 2:55:51 41.98 1,693
Sat, 3/25 2017 Morning Ride 3:37:45 41.94 2,874
Sun, 6/14 2015 Palo Alto, CA 2:46:38 41.67 1,086
Sat, 7/28 2018 Coyote Hills / Dumbarton 3:25:39 41.66 1,463
Sun, 8/7 2016 Afternoon Ride 2:42:58 41.19 1,526
Sun, 8/7 2016 Canada 2:42:58 41.19 1,526
Sat, 2/11 2017 Morning Ride 3:19:34 41.16 2,172
Sun, 12/3 2017 Bay Trail 2:53:58 40.86 568
Mon, 5/29 2017 Morning Ride 3:52:04 40.83 3,678
@@ -461,7 +468,7 @@ Sat, 6/4 2016 Morning Ride 1:57:23 25.19 922
Mon, 8/8 2016 Morning Ride 1:52:38 25.17 423
Fri, 11/6 2015 Morning Ride 1:51:45 25.15 538
Mon, 12/18 2017 Afternoon Ride 1:52:56 25.15 741
Fri, 6/24 2016 Afternoon Ride 1:35:25 25.11 623
Fri, 6/24 2016 Foothill Expway 1:35:25 25.11 623
Sat, 6/25 2016 Afternoon Ride 1:44:43 25.10 568
Sat, 1/25 2014 Woodside 1:33:38 25.08 1,243
Tue, 4/29 2014 Woodside 1:46:03 25.08 886
1 date year title hours miles feet
2 ##### 2019-2021: Mostly Eddington rides; most recent first
3 Sun, 4/4 2021 Everesting 7: Mill Creek / Morrison Canyon 3:04:46 29.38 3,517
4 Sat, 4/3 2021 Everesting 6: OLH / West Alpine 4:26:16 46.64 4,400
5 Fri, 4/2 2021 Everesting 5: climb 2×(OLH + WOLH) 3:16:30 31.48 4,344
6 Thu, 4/1 2021 Everesting 4: Kings / Tunitas / Bike Hut 4:40:36 45.57 4,452
7 Wed, 3/31 2021 Everesting 3: Ring of Fire + Ladera 4:40:59 45.78 4,544
8 Tue, 3/30 2021 Everesting 2: Kings + WOLH + OLH 3:20:29 35.99 4,377
9 Mon, 3/29 2021 Everesting 1: Mt Diablo 2:35:47 22.22 3,406
10 Sun, 3/14 2021 Fremont / Union City 5:18:47 69.58 1552
11 Fri, 3/12 2021 Santa Clara 5:09:38 69.49 1138
12 Sun, 2/7 2021 Saratoga / Campbell 5:53:33 78.38 2270
110 Sun, 9/3 2017 Morning Ride 4:22:45 51.31 2,526
111 Mon, 7/27 2015 Palo Alto Cycling 3:48:23 50.93 1,306
112 Wed, 7/29 2015 Palo Alto, CA 3:47:53 50.92 1,873
113 Sun, 6/26 2016 Afternoon Ride Los Gatos 3:16:33 50.78 1,181
114 Mon, 8/10 2015 Palo Alto, CA 3:41:54 50.73 1,325
115 Sat, 10/15 2016 Los Gatos 3:28:16 50.64 1,368
116 Tue, 12/19 2017 Los Gatos 3:46:37 50.49 1,929
157 Sat, 3/25 2017 Morning Ride 3:37:45 41.94 2,874
158 Sun, 6/14 2015 Palo Alto, CA 2:46:38 41.67 1,086
159 Sat, 7/28 2018 Coyote Hills / Dumbarton 3:25:39 41.66 1,463
160 Sun, 8/7 2016 Afternoon Ride Canada 2:42:58 41.19 1,526
161 Sat, 2/11 2017 Morning Ride 3:19:34 41.16 2,172
162 Sun, 12/3 2017 Bay Trail 2:53:58 40.86 568
163 Mon, 5/29 2017 Morning Ride 3:52:04 40.83 3,678
468 Mon, 8/8 2016 Morning Ride 1:52:38 25.17 423
469 Fri, 11/6 2015 Morning Ride 1:51:45 25.15 538
470 Mon, 12/18 2017 Afternoon Ride 1:52:56 25.15 741
471 Fri, 6/24 2016 Afternoon Ride Foothill Expway 1:35:25 25.11 623
472 Sat, 6/25 2016 Afternoon Ride 1:44:43 25.10 568
473 Sat, 1/25 2014 Woodside 1:33:38 25.08 1,243
474 Tue, 4/29 2014 Woodside 1:46:03 25.08 886