Skip to content

Commit

Permalink
add friend paradox
Browse files Browse the repository at this point in the history
  • Loading branch information
khuyentran1401 committed Aug 27, 2021
1 parent 740995b commit 37ba467
Show file tree
Hide file tree
Showing 7 changed files with 2,209 additions and 60 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ If you want to received updates of these blogs in your mailbox, you can subscrib
| How to Create Bindings and Conditions Between Multiple Plots Using Altair | [link](https://towardsdatascience.com/how-to-create-bindings-and-conditions-between-multiple-plots-using-altair-4e4fe907de37) | [link](https://github.com/khuyentran1401/Data-science/blob/master/visualization/altair/altair_advanced.ipynb)
| How to Sketch your Data Science Ideas With Excalidraw | [link](https://towardsdatascience.com/how-to-sketch-your-data-science-ideas-with-excalidraw-a993d049f55c) |
| Pyvis: Visualize Interactive Network Graphs in Python | [link](https://towardsdatascience.com/pyvis-visualize-interactive-network-graphs-in-python-77e059791f01) | [link](https://github.com/khuyentran1401/Data-science/blob/master/visualization/pyvis_examples/pyvis.ipynb)
| Build and Analyze Knowledge Graphs with Diffbot | [link](https://towardsdatascience.com/build-and-analyze-knowledge-graphs-with-diffbot-2af83065ade0)


# Mathematical Programming
Expand Down
3 changes: 2 additions & 1 deletion data_science_tools/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
xsv_example
datasette_examples
*.png
*.jpg
*.jpg
*-datapane*
98 changes: 45 additions & 53 deletions data_science_tools/Datapane_new_features/analyzing_articles.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 13,
"id": "preliminary-retailer",
"metadata": {
"ExecuteTime": {
"end_time": "2021-04-28T14:45:33.265064Z",
"start_time": "2021-04-28T14:45:29.095679Z"
"end_time": "2021-08-25T18:30:13.475201Z",
"start_time": "2021-08-25T18:30:12.442428Z"
}
},
"outputs": [],
Expand All @@ -39,12 +39,12 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 14,
"id": "western-journal",
"metadata": {
"ExecuteTime": {
"end_time": "2021-04-28T14:45:33.278478Z",
"start_time": "2021-04-28T14:45:33.271114Z"
"end_time": "2021-08-25T18:30:13.957343Z",
"start_time": "2021-08-25T18:30:13.944424Z"
}
},
"outputs": [],
Expand All @@ -54,12 +54,12 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 15,
"id": "systematic-notification",
"metadata": {
"ExecuteTime": {
"end_time": "2021-04-28T14:45:33.633587Z",
"start_time": "2021-04-28T14:45:33.283456Z"
"end_time": "2021-08-25T18:30:14.984499Z",
"start_time": "2021-08-25T18:30:14.437441Z"
}
},
"outputs": [],
Expand All @@ -71,12 +71,12 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 16,
"id": "severe-shooting",
"metadata": {
"ExecuteTime": {
"end_time": "2021-04-28T14:45:34.231297Z",
"start_time": "2021-04-28T14:45:33.639727Z"
"end_time": "2021-08-25T18:30:15.176220Z",
"start_time": "2021-08-25T18:30:14.988493Z"
}
},
"outputs": [],
Expand All @@ -94,12 +94,12 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 17,
"id": "unusual-essence",
"metadata": {
"ExecuteTime": {
"end_time": "2021-04-28T14:45:34.254985Z",
"start_time": "2021-04-28T14:45:34.236088Z"
"end_time": "2021-08-25T18:30:16.001975Z",
"start_time": "2021-08-25T18:30:15.984133Z"
}
},
"outputs": [
Expand All @@ -109,7 +109,7 @@
"'2020-05-04 07:01:00+00:00'"
]
},
"execution_count": 5,
"execution_count": 17,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -121,12 +121,12 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 18,
"id": "accomplished-discrimination",
"metadata": {
"ExecuteTime": {
"end_time": "2021-04-28T14:45:34.268955Z",
"start_time": "2021-04-28T14:45:34.261961Z"
"end_time": "2021-08-25T18:30:16.230131Z",
"start_time": "2021-08-25T18:30:16.223708Z"
}
},
"outputs": [],
Expand All @@ -136,12 +136,12 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 19,
"id": "processed-feeling",
"metadata": {
"ExecuteTime": {
"end_time": "2021-04-28T14:45:34.295489Z",
"start_time": "2021-04-28T14:45:34.284570Z"
"end_time": "2021-08-25T18:30:16.491826Z",
"start_time": "2021-08-25T18:30:16.480450Z"
}
},
"outputs": [
Expand All @@ -154,7 +154,7 @@
"<IPython.core.display.Image object>"
]
},
"execution_count": 7,
"execution_count": 19,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -166,12 +166,12 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 20,
"id": "hairy-dining",
"metadata": {
"ExecuteTime": {
"end_time": "2021-04-28T14:45:34.312899Z",
"start_time": "2021-04-28T14:45:34.302166Z"
"end_time": "2021-08-25T18:30:18.231401Z",
"start_time": "2021-08-25T18:30:18.223783Z"
}
},
"outputs": [
Expand All @@ -181,7 +181,7 @@
"'https://www.dataquest.io/wp-content/uploads/2020/05/learn-data-science.jpg'"
]
},
"execution_count": 8,
"execution_count": 20,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -192,12 +192,12 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 21,
"id": "comfortable-grill",
"metadata": {
"ExecuteTime": {
"end_time": "2021-04-28T14:45:34.577390Z",
"start_time": "2021-04-28T14:45:34.316847Z"
"end_time": "2021-08-25T18:30:19.118090Z",
"start_time": "2021-08-25T18:30:18.764613Z"
},
"deletable": false,
"editable": false
Expand All @@ -207,16 +207,16 @@
"name": "stdout",
"output_type": "stream",
"text": [
"--2021-04-28 09:45:34-- https://www.dataquest.io/wp-content/uploads/2020/05/learn-data-science.jpg\n",
"Resolving www.dataquest.io (www.dataquest.io)... 172.67.38.224, 104.22.33.241, 104.22.32.241, ...\n",
"--2021-08-25 13:30:18-- https://www.dataquest.io/wp-content/uploads/2020/05/learn-data-science.jpg\n",
"Resolving www.dataquest.io (www.dataquest.io)... 172.67.38.224, 104.22.32.241, 104.22.33.241, ...\n",
"Connecting to www.dataquest.io (www.dataquest.io)|172.67.38.224|:443... connected.\n",
"HTTP request sent, awaiting response... 200 OK\n",
"Length: 42832 (42K) [image/jpeg]\n",
"Saving to: ‘learn-data-science.jpg.1’\n",
"Length: 29758 (29K) [image/jpeg]\n",
"Saving to: ‘learn-data-science.jpg’\n",
"\n",
"learn-data-science. 100%[===================>] 41.83K --.-KB/s in 0.004s \n",
"learn-data-science. 100%[===================>] 29.06K --.-KB/s in 0.001s \n",
"\n",
"2021-04-28 09:45:34 (9.78 MB/s) - ‘learn-data-science.jpg.1’ saved [42832/42832]\n",
"2021-08-25 13:30:19 (50.6 MB/s) - ‘learn-data-science.jpg’ saved [29758/29758]\n",
"\n"
]
}
Expand All @@ -227,23 +227,15 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": 22,
"id": "christian-wings",
"metadata": {
"ExecuteTime": {
"end_time": "2021-04-28T14:45:35.701918Z",
"start_time": "2021-04-28T14:45:34.619802Z"
"end_time": "2021-08-25T18:30:19.767188Z",
"start_time": "2021-08-25T18:30:19.721490Z"
}
},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"Bokeh version 2.3.0 is not supported, your plots may not display correctly, please install version ~=2.2.0\n"
]
}
],
"outputs": [],
"source": [
"page = dp.Page(\n",
" '# Raw Article Information',\n",
Expand Down Expand Up @@ -2169,9 +2161,9 @@
}
],
"source": [
"dp.Report(*report).publish(name='analyze_article',\n",
"dp.Report(*report).upload(name='analyze_article',\n",
" description='Summarize article, extract and visualize keywords',\n",
" visibility=dp.Visibility.PUBLIC)"
" )"
]
},
{
Expand All @@ -2185,9 +2177,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "medium",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "medium"
"name": "python3"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -2199,7 +2191,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.8"
"version": "3.8.10"
},
"toc": {
"base_numbering": 1,
Expand Down
2 changes: 1 addition & 1 deletion statistics/patsy_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2786,7 +2786,7 @@
"metadata": {
"hide_input": false,
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand Down
6 changes: 3 additions & 3 deletions visualization/.gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
*.zip
*.html
Data
*_datapane.ipynb
dp-cache
.ipynb_checkpoints
*.html
.log
github_stargazers
.config
pyvis_datapane.ipynb
*-datapane.ipynb
*.txt
*.html
Loading

0 comments on commit 37ba467

Please sign in to comment.