Skip to content

Commit

Permalink
Illuminati1
Browse files Browse the repository at this point in the history
  • Loading branch information
salgo60 committed Jul 5, 2020
1 parent 35bf90a commit 4240f11
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 35 deletions.
49 changes: 32 additions & 17 deletions .ipynb_checkpoints/Wikdata -> Panda dataset-checkpoint.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1060,7 +1060,7 @@
},
{
"cell_type": "code",
"execution_count": 107,
"execution_count": 116,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -1095,6 +1095,7 @@
" <th>destinationLabel</th>\n",
" <th>destination_latitude</th>\n",
" <th>destination_longitude</th>\n",
" <th>geometry</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
Expand All @@ -1111,6 +1112,7 @@
" <td>Gotha</td>\n",
" <td>50.948889</td>\n",
" <td>10.718056</td>\n",
" <td>POINT (49.45203 49.45203)</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
Expand All @@ -1125,6 +1127,7 @@
" <td>Gotha</td>\n",
" <td>50.948889</td>\n",
" <td>10.718056</td>\n",
" <td>POINT (49.45203 49.45203)</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
Expand All @@ -1139,6 +1142,7 @@
" <td>Gotha</td>\n",
" <td>50.948889</td>\n",
" <td>10.718056</td>\n",
" <td>POINT (52.37020 52.37020)</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
Expand All @@ -1153,6 +1157,7 @@
" <td>Gotha</td>\n",
" <td>50.948889</td>\n",
" <td>10.718056</td>\n",
" <td>POINT (48.76653 48.76653)</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
Expand All @@ -1167,23 +1172,24 @@
" <td>Gotha</td>\n",
" <td>50.948889</td>\n",
" <td>10.718056</td>\n",
" <td>POINT (48.76653 48.76653)</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" item ... destination_longitude\n",
"0 https://database.factgrid.de/entity/Q4166 ... 10.718056\n",
"1 https://database.factgrid.de/entity/Q4167 ... 10.718056\n",
"2 https://database.factgrid.de/entity/Q2238 ... 10.718056\n",
"3 https://database.factgrid.de/entity/Q4163 ... 10.718056\n",
"4 https://database.factgrid.de/entity/Q4164 ... 10.718056\n",
" item ... geometry\n",
"0 https://database.factgrid.de/entity/Q4166 ... POINT (49.45203 49.45203)\n",
"1 https://database.factgrid.de/entity/Q4167 ... POINT (49.45203 49.45203)\n",
"2 https://database.factgrid.de/entity/Q2238 ... POINT (52.37020 52.37020)\n",
"3 https://database.factgrid.de/entity/Q4163 ... POINT (48.76653 48.76653)\n",
"4 https://database.factgrid.de/entity/Q4164 ... POINT (48.76653 48.76653)\n",
"\n",
"[5 rows x 11 columns]"
"[5 rows x 12 columns]"
]
},
"execution_count": 107,
"execution_count": 116,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -1194,7 +1200,7 @@
},
{
"cell_type": "code",
"execution_count": 109,
"execution_count": 119,
"metadata": {},
"outputs": [
{
Expand All @@ -1207,12 +1213,12 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "f8c4c902ba3a4382b22c3553b19d8e47",
"model_id": "9a72478e15984480bfac6145de1c9bd3",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"KeplerGl(height=600)"
"KeplerGl(data={'The Illuminati Correspondence ': {'index': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, …"
]
},
"metadata": {},
Expand All @@ -1224,13 +1230,14 @@
"from keplergl import KeplerGl #importing KeplerGl\n",
"gdf = gpd.GeoDataFrame(resultsFactGrid, geometry=gpd.points_from_xy(resultsFactGrid.origin_latitude, resultsFactGrid.origin_latitude))\n",
"\n",
"map = KeplerGl(height=600, width=800)\n",
"map #show the map"
"Illuminati1 = KeplerGl(height=600, width=800)\n",
"Illuminati1.add_data(data=gdf, name=\"The Illuminati Correspondence \") \n",
"Illuminati1 #show the map not seen when file uploaded to GITHUB \n"
]
},
{
"cell_type": "code",
"execution_count": 112,
"execution_count": 120,
"metadata": {},
"outputs": [
{
Expand All @@ -1242,9 +1249,17 @@
}
],
"source": [
"map.add_data(data=gdf, name=\"The Illuminati Correspondence \") \n",
"local_file=\"Illuminati1.html\"\n",
"map.save_to_html(file_name=local_file) "
"Illuminati1.save_to_html(file_name=local_file) "
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Raw html file created in GITHUB see [salgo60/open-data-examples/Illuminati1.html](https://raw.githubusercontent.com/salgo60/open-data-examples/master/Illuminati1.html) \n",
"\n",
"* looks like the file needs to be downloaded to be displayed in a browser\n"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion Illuminati1.html

Large diffs are not rendered by default.

49 changes: 32 additions & 17 deletions Wikdata -> Panda dataset.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1060,7 +1060,7 @@
},
{
"cell_type": "code",
"execution_count": 107,
"execution_count": 116,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -1095,6 +1095,7 @@
" <th>destinationLabel</th>\n",
" <th>destination_latitude</th>\n",
" <th>destination_longitude</th>\n",
" <th>geometry</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
Expand All @@ -1111,6 +1112,7 @@
" <td>Gotha</td>\n",
" <td>50.948889</td>\n",
" <td>10.718056</td>\n",
" <td>POINT (49.45203 49.45203)</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
Expand All @@ -1125,6 +1127,7 @@
" <td>Gotha</td>\n",
" <td>50.948889</td>\n",
" <td>10.718056</td>\n",
" <td>POINT (49.45203 49.45203)</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
Expand All @@ -1139,6 +1142,7 @@
" <td>Gotha</td>\n",
" <td>50.948889</td>\n",
" <td>10.718056</td>\n",
" <td>POINT (52.37020 52.37020)</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
Expand All @@ -1153,6 +1157,7 @@
" <td>Gotha</td>\n",
" <td>50.948889</td>\n",
" <td>10.718056</td>\n",
" <td>POINT (48.76653 48.76653)</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
Expand All @@ -1167,23 +1172,24 @@
" <td>Gotha</td>\n",
" <td>50.948889</td>\n",
" <td>10.718056</td>\n",
" <td>POINT (48.76653 48.76653)</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" item ... destination_longitude\n",
"0 https://database.factgrid.de/entity/Q4166 ... 10.718056\n",
"1 https://database.factgrid.de/entity/Q4167 ... 10.718056\n",
"2 https://database.factgrid.de/entity/Q2238 ... 10.718056\n",
"3 https://database.factgrid.de/entity/Q4163 ... 10.718056\n",
"4 https://database.factgrid.de/entity/Q4164 ... 10.718056\n",
" item ... geometry\n",
"0 https://database.factgrid.de/entity/Q4166 ... POINT (49.45203 49.45203)\n",
"1 https://database.factgrid.de/entity/Q4167 ... POINT (49.45203 49.45203)\n",
"2 https://database.factgrid.de/entity/Q2238 ... POINT (52.37020 52.37020)\n",
"3 https://database.factgrid.de/entity/Q4163 ... POINT (48.76653 48.76653)\n",
"4 https://database.factgrid.de/entity/Q4164 ... POINT (48.76653 48.76653)\n",
"\n",
"[5 rows x 11 columns]"
"[5 rows x 12 columns]"
]
},
"execution_count": 107,
"execution_count": 116,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -1194,7 +1200,7 @@
},
{
"cell_type": "code",
"execution_count": 109,
"execution_count": 119,
"metadata": {},
"outputs": [
{
Expand All @@ -1207,12 +1213,12 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "f8c4c902ba3a4382b22c3553b19d8e47",
"model_id": "9a72478e15984480bfac6145de1c9bd3",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"KeplerGl(height=600)"
"KeplerGl(data={'The Illuminati Correspondence ': {'index': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, …"
]
},
"metadata": {},
Expand All @@ -1224,13 +1230,14 @@
"from keplergl import KeplerGl #importing KeplerGl\n",
"gdf = gpd.GeoDataFrame(resultsFactGrid, geometry=gpd.points_from_xy(resultsFactGrid.origin_latitude, resultsFactGrid.origin_latitude))\n",
"\n",
"map = KeplerGl(height=600, width=800)\n",
"map #show the map"
"Illuminati1 = KeplerGl(height=600, width=800)\n",
"Illuminati1.add_data(data=gdf, name=\"The Illuminati Correspondence \") \n",
"Illuminati1 #show the map not seen when file uploaded to GITHUB \n"
]
},
{
"cell_type": "code",
"execution_count": 112,
"execution_count": 120,
"metadata": {},
"outputs": [
{
Expand All @@ -1242,9 +1249,17 @@
}
],
"source": [
"map.add_data(data=gdf, name=\"The Illuminati Correspondence \") \n",
"local_file=\"Illuminati1.html\"\n",
"map.save_to_html(file_name=local_file) "
"Illuminati1.save_to_html(file_name=local_file) "
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Raw html file created in GITHUB see [salgo60/open-data-examples/Illuminati1.html](https://raw.githubusercontent.com/salgo60/open-data-examples/master/Illuminati1.html) \n",
"\n",
"* looks like the file needs to be downloaded to be displayed in a browser\n"
]
},
{
Expand Down

0 comments on commit 4240f11

Please sign in to comment.