Skip to content

Update party notebooks #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1,043 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1043 commits
Select commit Hold shift + click to select a range
359a7b6
Add files via upload
AshleyZhao Dec 17, 2020
4a437c0
Add files via upload
AshleyZhao Dec 17, 2020
9db47f7
Delete Use PMML to predict iris species (WMLV2).ipynb
AshleyZhao Dec 17, 2020
1f49e09
Add files via upload
AshleyZhao Dec 17, 2020
58029f8
Add files via upload
AshleyZhao Dec 17, 2020
94ace3c
Delete Use PMML to predict iris species (WMLV2).html
AshleyZhao Dec 17, 2020
36af07e
Add files via upload
AshleyZhao Dec 17, 2020
7c9722d
Add files via upload
AshleyZhao Dec 17, 2020
7cd6de2
Delete Use Python to recognize hand-written digits (WMLV2).html
AshleyZhao Dec 17, 2020
c4d60e5
Add files via upload
AshleyZhao Dec 17, 2020
c12dff0
Add files via upload
AshleyZhao Dec 17, 2020
8b683ce
Add files via upload
AshleyZhao Dec 17, 2020
d448f9e
Add files via upload
AshleyZhao Dec 17, 2020
c745724
Add files via upload
AshleyZhao Dec 17, 2020
0189dfc
Add files via upload
AshleyZhao Dec 17, 2020
f370612
Add files via upload
AshleyZhao Dec 17, 2020
945d5de
Add files via upload
AshleyZhao Dec 17, 2020
f127a91
Add files via upload
AshleyZhao Dec 17, 2020
3b9dcd4
Create readme.md
AshleyZhao Dec 17, 2020
081e941
Add files via upload
AshleyZhao Dec 17, 2020
57a03a8
Add files via upload
AshleyZhao Dec 21, 2020
c4057a2
Add files via upload
AshleyZhao Dec 21, 2020
a0283e1
Add files via upload
AshleyZhao Dec 21, 2020
150f448
Delete Insights from New York car accident reports.ipynb
AshleyZhao Dec 21, 2020
38a9e6f
Add files via upload
AshleyZhao Jan 6, 2021
0917b36
Add files via upload
AshleyZhao Jan 8, 2021
79c32df
Add files via upload
AshleyZhao Jan 8, 2021
badbdfa
Delete Use Keras experiment to transfer style(WMLV2).ipynb
AshleyZhao Jan 8, 2021
9cc5e73
Add files via upload
AshleyZhao Jan 8, 2021
448d682
Add files via upload
AshleyZhao Jan 8, 2021
b242bbf
Add files via upload
AshleyZhao Jan 8, 2021
178623f
Delete Federated-Learning-Demo-for-CP4D.zip
AshleyZhao Jan 9, 2021
bc47e62
Add files via upload
AshleyZhao Jan 11, 2021
7858e31
Delete Federated-Learning-Demo-for-CP4D.zip
AshleyZhao Jan 11, 2021
089f7ad
Add files via upload
AshleyZhao Jan 11, 2021
5c32a3c
Delete Use Spark to predict credit risk (WMLV2).html
AshleyZhao Jan 11, 2021
8c9d5c3
Delete Use Spark to predict credit risk with WML (WMLV2).html
AshleyZhao Jan 11, 2021
05513e0
Add files via upload
AshleyZhao Jan 11, 2021
4388ad1
Add files via upload
AshleyZhao Jan 11, 2021
3244474
Delete Use Spark to predict product line with WML (WMLV2).html
AshleyZhao Jan 11, 2021
836b3e7
Add files via upload
AshleyZhao Jan 11, 2021
03cf1c8
Add files via upload
AshleyZhao Jan 12, 2021
116c117
Add files via upload
AshleyZhao Jan 12, 2021
71a2ebb
Add files via upload
AshleyZhao Jan 12, 2021
a988749
Add files via upload
AshleyZhao Jan 12, 2021
6fe02f4
Add files via upload
AshleyZhao Jan 13, 2021
d4f2609
Add files via upload
AshleyZhao Jan 13, 2021
38bd410
Rename Cloud/HTML/Access Db2 Warehouse on Cloud and Db2 with Python.h…
AshleyZhao Jan 13, 2021
5d33ea0
Rename Cloud/HTML/Analyze+accident+reports+on+Amazon+EMR+Spark.html t…
AshleyZhao Jan 13, 2021
e1694db
Rename Cloud/HTML/Analyzing data by using the Sparkling.html to Cloud…
AshleyZhao Jan 13, 2021
d3823ba
Rename Cloud/HTML/Build and deploy spam classifier with WML.html to C…
AshleyZhao Jan 13, 2021
0e81289
Rename Cloud/HTML/Connect to Db2 Warehouse on Cloud and Db2 using Sca…
AshleyZhao Jan 13, 2021
f2d4e0f
Rename Cloud/HTML/Correlate text across documents.html to Cloud/Archi…
AshleyZhao Jan 13, 2021
4d1075c
Rename Cloud/HTML/Deploy a Python function to IBM Watson Machine Lear…
AshleyZhao Jan 13, 2021
8b259af
Rename Cloud/HTML/Deploy a Python function to IBM Watson Machine Lear…
AshleyZhao Jan 13, 2021
962da7e
Rename Cloud/HTML/Deploy and score AutoAI model - V4 Python client.ht…
AshleyZhao Jan 13, 2021
69001a6
Rename Cloud/HTML/Deploy and score an AutoAI model - REST API.html to…
AshleyZhao Jan 13, 2021
da0bfa3
Rename Cloud/HTML/Deploying a Decision Optimization model.html to Clo…
AshleyZhao Jan 13, 2021
26550e6
Rename Cloud/HTML/Detect+malfunctioning+sensors+in+real+time.html to …
AshleyZhao Jan 13, 2021
4d2074f
Delete Healthcare Python Streaming Application.html
AshleyZhao Jan 13, 2021
597693c
Delete Healthcare Python Streaming Application Demo.html
AshleyZhao Jan 13, 2021
b0d8be4
Delete Import a Keras model into IBM Watson Mac.html
AshleyZhao Jan 13, 2021
f81df19
Rename Cloud/HTML/Ingest+IoT+data+in+the+Streaming+Analytics+service.…
AshleyZhao Jan 13, 2021
1b87ef7
Rename Cloud/HTML/Maximize oil company profits.html to Cloud/Archive/…
AshleyZhao Jan 13, 2021
9c0cc01
Rename Cloud/HTML/Model_bike_sharing_data_with_SPSS.html to Cloud/Arc…
AshleyZhao Jan 13, 2021
fc79f08
Delete Movie recommender system with Spark machine learni.html
AshleyZhao Jan 13, 2021
aedb510
Rename Cloud/HTML/Predict Loan Applicant Behavior with TensorFlow Neu…
AshleyZhao Jan 13, 2021
4e0e695
Rename Cloud/HTML/Predict Loan Behvior - TensorFlow Neural Network.ht…
AshleyZhao Jan 13, 2021
08764e3
Rename Cloud/HTML/Predict handwritten digits.html to Cloud/Archive/Pr…
AshleyZhao Jan 13, 2021
1322d04
Rename Cloud/HTML/Predicting+churn+with+SPSS+random+tree+algorithm.ht…
AshleyZhao Jan 13, 2021
467eaca
Rename Cloud/HTML/Social media insights with Watson Developer Cloud.h…
AshleyZhao Jan 13, 2021
f85f269
Rename Cloud/HTML/TensorFlow regression model to predict house value.…
AshleyZhao Jan 13, 2021
524f487
Rename Cloud/HTML/Use Apache SystemML and Spark for machine learning.…
AshleyZhao Jan 13, 2021
e88935b
Rename Cloud/HTML/Use R DataFrames _ IBM Watson Natural Language Unde…
AshleyZhao Jan 13, 2021
7554764
Delete Use R to forecast time series data.html
AshleyZhao Jan 13, 2021
8e4d932
Rename Cloud/HTML/Use Spark ML and Python to detect intrusion.html to…
AshleyZhao Jan 13, 2021
5e17256
Rename Cloud/HTML/Use Spark SQL to explore heating problems.html to C…
AshleyZhao Jan 13, 2021
37378e1
Rename Cloud/HTML/Use+SQL+with+data+in+Hadoop+Python.html to Cloud/Ar…
AshleyZhao Jan 13, 2021
e216df4
Delete IBM Cloud SQL Query .html
AshleyZhao Jan 13, 2021
7dcc326
Delete Visualize car data with Brunel.html
AshleyZhao Jan 13, 2021
46d111e
Delete Watson Assistant Workspace Analysis with User Logs.html
AshleyZhao Jan 13, 2021
537fb94
Rename Cloud/HTML/What caused the Challenger disaster_.html to Cloud/…
AshleyZhao Jan 13, 2021
544a285
Issue 3130
wswtizer Feb 5, 2021
4787e8a
#3044
wswtizer Feb 6, 2021
ab960e5
#3044
wswtizer Feb 6, 2021
6b4439a
#3044
wswtizer Feb 6, 2021
954cd31
#3044
wswtizer Feb 7, 2021
a1e7f1a
Create readme.md
AshleyZhao Feb 12, 2021
74f5834
Add files via upload
AshleyZhao Feb 12, 2021
5af0802
Delete Sales-and-Operations-Planning.zip
AshleyZhao Feb 15, 2021
8386891
Delete Insurance-Pricing-Optimization-Project.zip
AshleyZhao Feb 15, 2021
170a63b
Delete GMB-Project.zip
AshleyZhao Feb 15, 2021
02d6cc9
Delete DAX-project.zip
AshleyZhao Feb 15, 2021
29bf9a7
Add files via upload
AshleyZhao Feb 15, 2021
55a1aab
Add files via upload
AshleyZhao Feb 15, 2021
cf1803f
Add files via upload
AshleyZhao Feb 15, 2021
a206bbc
#3164
wswtizer Feb 17, 2021
a01f461
Merge branch 'master' of https://github.com/IBMDataScience/sample-not…
wswtizer Feb 17, 2021
6c6dc72
#3164
wswtizer Feb 17, 2021
f9fa0e6
#3164
wswtizer Feb 17, 2021
cf7f345
#3164
wswtizer Feb 17, 2021
4301caa
#3164
wswtizer Feb 18, 2021
4cd4e48
Update README.md
AshleyZhao Feb 24, 2021
b1e8375
Update README.md
AshleyZhao Feb 24, 2021
b17f05a
Update README.md
AshleyZhao Feb 24, 2021
dbbf9eb
Update README.md
AshleyZhao Feb 24, 2021
aab75ca
#3191
wswtizer Feb 28, 2021
512364d
Merge branch 'master' of https://github.com/IBMDataScience/sample-not…
wswtizer Feb 28, 2021
571ff63
#3217
wswtizer Mar 3, 2021
55f5f3e
#3217
wswtizer Mar 3, 2021
262ff8c
#3208
wswtizer Mar 3, 2021
eb82e3a
#3164
wswtizer Mar 3, 2021
07caa6a
#3164
wswtizer Mar 3, 2021
26cbce9
#3164
wswtizer Mar 4, 2021
4f27412
#3113
wswtizer Mar 12, 2021
33e38c4
Update README.md
AshleyZhao Mar 23, 2021
6cd19bf
3244
wswtizer Mar 31, 2021
f5045ea
3242
wswtizer Mar 31, 2021
5f09ad2
3163
wswtizer Mar 31, 2021
b4bc0f1
Merge branch 'master' of https://github.com/IBMDataScience/sample-not…
wswtizer Mar 31, 2021
6714bb7
Add files via upload
AshleyZhao Apr 6, 2021
cea287b
Add files via upload
AshleyZhao Apr 6, 2021
255269e
Delete Machine Learning for Equipment Maintenance - Pub.ipynb
AshleyZhao Apr 6, 2021
8d9108a
Add files via upload
AshleyZhao Apr 6, 2021
9168b67
3345
wswtizer Apr 17, 2021
3fe6835
Merge branch 'master' of https://github.com/IBMDataScience/sample-not…
wswtizer Apr 17, 2021
44f6b98
Add files via upload
AshleyZhao May 1, 2021
50044f7
Add files via upload
AshleyZhao May 4, 2021
215ec9b
Add files via upload
AshleyZhao May 4, 2021
a69a15b
Update mnist_keras_data_handler.py
AshleyZhao May 11, 2021
307a74a
Add files via upload
AshleyZhao May 26, 2021
cb38764
Delete adult_sklearn_data_handler.py
AshleyZhao May 26, 2021
c4ff8d0
Add files via upload
AshleyZhao May 26, 2021
461eacb
Add files via upload
AshleyZhao Jun 17, 2021
a10ade7
Delete Analyze Watson Assistant Effectiveness.html
AshleyZhao Jun 17, 2021
9e0ccfe
Add files via upload
AshleyZhao Jun 17, 2021
e939ec4
Add files via upload
AshleyZhao Jun 17, 2021
92859b3
Delete Analyze Watson Assistant effectiveness.html
AshleyZhao Jun 17, 2021
f17e2f2
Add files via upload
AshleyZhao Jun 25, 2021
7629320
Add files via upload
AshleyZhao Jul 2, 2021
8d27393
Add files via upload
AshleyZhao Jul 2, 2021
e863da2
Create Readme.md
AshleyZhao Jul 8, 2021
b7f7453
Add files via upload
AshleyZhao Jul 8, 2021
afaba24
Create Readme.md
AshleyZhao Jul 8, 2021
aef2ad5
Delete CloudPakforData/3.5 directory
AshleyZhao Jul 8, 2021
123eee7
Create Readme.md
AshleyZhao Jul 8, 2021
f2740c0
Create Readme.md
AshleyZhao Jul 8, 2021
8a47aa6
Add files via upload
AshleyZhao Jul 8, 2021
cc68434
Create Readme.md
AshleyZhao Jul 8, 2021
6d54a0f
Add files via upload
AshleyZhao Jul 8, 2021
0277b19
Rename CloudPakForData/notebooks/4.0/Working with ibm-watson-studio-l…
AshleyZhao Jul 8, 2021
caff750
Create Readme.md
AshleyZhao Jul 8, 2021
f03060b
Add files via upload
AshleyZhao Jul 8, 2021
54677c6
Delete CloudPakforData-3.0/notebooks directory
AshleyZhao Jul 8, 2021
fb33abb
Delete Cloud Pak for Data 3.5 directory
AshleyZhao Jul 8, 2021
852aee3
Add files via upload
AshleyZhao Jul 16, 2021
dd83427
Delete Distribution-Market-Platform-Demo.zip
AshleyZhao Jul 21, 2021
7690839
Add files via upload
AshleyZhao Jul 21, 2021
0c32bd6
Add files via upload
AshleyZhao Jul 22, 2021
55b26a9
Add files via upload
AshleyZhao Jul 22, 2021
931b0f3
Add files via upload
AshleyZhao Jul 22, 2021
511e0c0
Add files via upload
AshleyZhao Jul 22, 2021
44139ab
Create Dummy.md
AshleyZhao Aug 4, 2021
ffbf0dc
Add files via upload
AshleyZhao Aug 4, 2021
59e6178
Add files via upload
AshleyZhao Aug 4, 2021
b4ed16f
Delete Federated Learning Demo Part 1 - for Admin.ipynb
AshleyZhao Aug 11, 2021
f5f91c1
Add files via upload
AshleyZhao Aug 11, 2021
bff8fd4
Update mnist_keras_data_handler.py
AshleyZhao Aug 12, 2021
cfcc843
Add files via upload
AshleyZhao Aug 19, 2021
a94f228
Add files via upload
AshleyZhao Aug 19, 2021
e6c8e00
Add files via upload
AshleyZhao Aug 19, 2021
18b4646
Delete Use Decision Optimization to plan your diet.html
AshleyZhao Aug 19, 2021
7cd63f3
Add files via upload
AshleyZhao Aug 19, 2021
57e1a7e
Add files via upload
AshleyZhao Aug 19, 2021
a2145a9
Add files via upload
AshleyZhao Aug 24, 2021
20d7b01
Add files via upload
AshleyZhao Aug 24, 2021
46f463f
Add files via upload
AshleyZhao Aug 24, 2021
367cc2a
Add files via upload
AshleyZhao Aug 25, 2021
3a2fa46
Delete Orchestration-Flow-project.zip
AshleyZhao Aug 25, 2021
e907735
Delete Train-AutoAI-and-reference-model.zip
AshleyZhao Aug 27, 2021
f577c27
Add files via upload
AshleyZhao Aug 27, 2021
d3fe25f
Add files via upload
AshleyZhao Sep 9, 2021
9937ac0
Add files via upload
AshleyZhao Sep 9, 2021
c5cfdf2
Add files via upload
AshleyZhao Sep 9, 2021
4761b19
Add files via upload
AshleyZhao Sep 9, 2021
4eebbcf
Add files via upload
AshleyZhao Sep 9, 2021
8bb039c
Add files via upload
AshleyZhao Sep 23, 2021
81027ab
Add files via upload
AshleyZhao Sep 23, 2021
a13c882
Add files via upload
AshleyZhao Sep 23, 2021
4cc5f22
Add files via upload
AshleyZhao Sep 23, 2021
0e45cea
Add files via upload
AshleyZhao Oct 1, 2021
528abb2
Add files via upload
AshleyZhao Oct 4, 2021
617d10e
Add files via upload
AshleyZhao Oct 4, 2021
3f6bfd9
Add files via upload
AshleyZhao Oct 5, 2021
86e6da3
Add files via upload
AshleyZhao Oct 5, 2021
c64247d
Add files via upload
AshleyZhao Oct 5, 2021
0912d74
Add files via upload
AshleyZhao Oct 5, 2021
14265af
Add files via upload
AshleyZhao Oct 7, 2021
5a1df65
Delete Federated Learning Demo Part 2 - for Party.html
AshleyZhao Oct 7, 2021
ceb49e4
Delete Federated Learning - XGB - Adult - Aggregator .ipynb
AshleyZhao Oct 7, 2021
aa52265
Delete Federated Learning - XGB - Adult - Party.ipynb
AshleyZhao Oct 7, 2021
a82f539
Add files via upload
AshleyZhao Oct 7, 2021
fef7102
Add files via upload
AshleyZhao Oct 7, 2021
b8d5910
Changes per Wendy's GitHub issue
sean-nellington Oct 21, 2021
919f04d
Merge pull request #8 from sean-nellington/patch-1
AshleyZhao Oct 21, 2021
1ebd225
Add files via upload
AshleyZhao Oct 29, 2021
603be67
Add files via upload
AshleyZhao Oct 29, 2021
348cb09
Add files via upload
AshleyZhao Oct 29, 2021
3fec8a6
Add files via upload
AshleyZhao Oct 29, 2021
fe3377f
Add files via upload
AshleyZhao Oct 29, 2021
70de69b
Add files via upload
AshleyZhao Oct 29, 2021
7c93c3d
Add files via upload
AshleyZhao Oct 29, 2021
cb5735b
Add files via upload
AshleyZhao Oct 29, 2021
7c9ec7d
Add files via upload
AshleyZhao Oct 29, 2021
6223124
Create Readme.md
AshleyZhao Nov 9, 2021
23f79c4
Add files via upload
AshleyZhao Nov 9, 2021
9dabf27
Add files via upload
AshleyZhao Nov 9, 2021
452a1d0
Delete Historical_Product_Demand_Modeler_Training.csv
AshleyZhao Nov 9, 2021
77fbed1
Add files via upload
AshleyZhao Nov 9, 2021
efdea6b
Add files via upload
AshleyZhao Nov 9, 2021
d0371a1
Add files via upload
AshleyZhao Nov 9, 2021
47bebb6
Add files via upload
AshleyZhao Nov 9, 2021
bc4904b
Add files via upload
AshleyZhao Nov 9, 2021
0bb5be0
Add files via upload
AshleyZhao Nov 9, 2021
06f1f29
Add files via upload
AshleyZhao Nov 9, 2021
d948b92
Add files via upload
AshleyZhao Nov 9, 2021
8a81517
Add files via upload
AshleyZhao Nov 9, 2021
13be36b
Add files via upload
AshleyZhao Nov 9, 2021
d99d633
Add files via upload
AshleyZhao Nov 9, 2021
89ed34a
Add files via upload
AshleyZhao Nov 9, 2021
d5ff54d
Add files via upload
AshleyZhao Nov 9, 2021
0a8a9d2
Update readme.md
AshleyZhao Nov 9, 2021
efe12a4
Add files via upload
AshleyZhao Nov 15, 2021
08ddc30
Changes per Python 3.8
sean-nellington Nov 17, 2021
11ffa60
Merge pull request #9 from sean-nellington/patch-1
AshleyZhao Nov 17, 2021
3410dfa
Removed y value adjustment
jrhyness Dec 15, 2021
899226c
Merge pull request #10 from jrhyness/jrhyness-patch-1
AshleyZhao Dec 16, 2021
5900959
Update Access MySQL with Python 3.ipynb
AshleyZhao Dec 18, 2021
9557ceb
Update Analyze Watson Assistant Effectiveness.ipynb
AshleyZhao Dec 18, 2021
2f01573
Update Analyze energy consumption in buildings.ipynb
AshleyZhao Dec 18, 2021
b1314e3
Update Analyze precipitation data.ipynb
AshleyZhao Dec 18, 2021
bfe8da9
Add files via upload
AshleyZhao Jan 20, 2022
506e013
Add files via upload
AshleyZhao Jan 21, 2022
20623fe
Add files via upload
AshleyZhao Jan 21, 2022
656fe5e
Add files via upload
AshleyZhao Jan 24, 2022
4e135bf
Add files via upload
AshleyZhao Jan 24, 2022
82ac885
Updated TF demo with new party API
jrhyness Feb 9, 2022
2741ab1
Updated XGBoost notebooks
jrhyness Feb 9, 2022
4c961d0
Rearranged APIClient cells
jrhyness Feb 9, 2022
ea63046
Added party logging
jrhyness Feb 9, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
13,662 changes: 13,662 additions & 0 deletions Cloud/Archive/Access Db2 Warehouse on Cloud and Db2 with Python.html

Large diffs are not rendered by default.

992 changes: 992 additions & 0 deletions Cloud/Archive/Access Db2 Warehouse on Cloud and Db2 with Python.ipynb

Large diffs are not rendered by default.

12,857 changes: 12,707 additions & 150 deletions Cloud/Archive/Access MySQL with Python.html

Large diffs are not rendered by default.

131 changes: 80 additions & 51 deletions Cloud/IPYNB/Access+MySQL+with+Python.ipynb → Cloud/Archive/Access MySQL with Python.ipynb
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"<div style=\"background:#F5F7FA; height:100px; padding: 2em; font-size:14px;\">\n",
"<span style=\"font-size:18px;color:#152935;\">Want to do more?</span><span style=\"border: 1px solid #3d70b2;padding: 15px;float:right;margin-right:40px; color:#3d70b2; \"><a href=\"https://ibm.co/wsnotebooks\" target=\"_blank\" style=\"color: #3d70b2;text-decoration: none;\">Sign Up</a></span><br>\n",
"<span style=\"color:#5A6872;\"> Try out this notebook with your free trial of IBM Watson Studio.</span>\n",
"</div>"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand All @@ -8,7 +18,7 @@
"\n",
"This notebook shows how to access a MySQL database when using Python.\n",
"\n",
"This notebook runs on Python with Spark 2.0.\n",
"This notebook runs on Python 2 with Spark 2.1.\n",
"\n",
"## Table of contents\n",
"\n",
Expand All @@ -26,9 +36,8 @@
"\n",
"## Setup\n",
"\n",
"Before beginning you will need access to a *MySQL* database. MySQL is an open-source relational database management system (RDBMS) that is widely used as a client–server model RDBMS. To learn more, see the [MySQL website](https://www.mysql.com/).\n",
"\n",
"You should have a MySQL instance installed and running in the cloud. You can use [Amazon RDS (Relational Database Service)](http://aws.amazon.com/rds/mysql/) to set up, operate, and scale a MySQL instance. \n",
"You should have a MySQL instance installed and running in the cloud. MySQL is an open-source relational database management system (RDBMS) that is widely used as a client–server model RDBMS. To learn more, see the [MySQL website](https://www.mysql.com/).\n",
" \n",
"__Note:__ if you are using an Amazon RDS service, make sure it accept connections from every IP.\n",
"\n",
"\n",
Expand All @@ -41,25 +50,15 @@
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Requirement already satisfied: MySQL-python in /usr/local/src/bluemix_jupyter_bundle.v52/notebook/lib/python2.7/site-packages\r\n"
]
}
],
"outputs": [],
"source": [
"!pip install MySQL-python --user"
"!pip install -q MySQL-python --user"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {
"collapsed": true
},
"metadata": {},
"outputs": [],
"source": [
"import MySQLdb"
Expand All @@ -83,28 +82,40 @@
"Connecting to MySQL database requires the following information:\n",
"* Host name or IP address \n",
"* Host port\n",
"* default database name\n",
"* Database name\n",
"* User ID\n",
"* User password\n",
"\n",
"All of this information must be captured in a connection string in a subsequent step. Provide the MySQL connection information as shown:"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
"#Enter the values for you database connection\n",
"dsn_database = \"\" # for example \"BLUDB\"\n",
"dsn_hostname = \"\" # for example \"mydbinstance.cz6pjylrdjko.us-east-1.rds.amazonaws.com\"\n",
"dsn_port = 3306 # for example 3306 without quotation marks\n",
"dsn_uid = \"\" # for example \"user1\"\n",
"dsn_pwd = \"\" # for example \"7dBZ3jWt9xN6$o0JiX!m\"\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Create the database connection\n",
"Set up a connection as follows. If a connect cannot be made an exception will be raised. \n",
"*conn.cursor* will return a cursor object and you can use this cursor to perform queries:"
"Set up a connection as follows. If a connection cannot be made, an exception will be raised. \n",
"`conn.cursor` will return a cursor object and you can use this cursor to perform queries:"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
"conn = MySQLdb.connect(host=dsn_hostname, port=dsn_port, user=dsn_uid, passwd=dsn_pwd, db=dsn_database)"
Expand All @@ -123,10 +134,8 @@
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"execution_count": 5,
"metadata": {},
"outputs": [],
"source": [
"conn.query(\"\"\"DROP TABLE IF EXISTS Cars\"\"\")\n",
Expand All @@ -144,10 +153,8 @@
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"execution_count": 6,
"metadata": {},
"outputs": [],
"source": [
"conn.query(\"\"\"INSERT INTO Cars VALUES(1,'Audi',52642)\"\"\")\n",
Expand All @@ -171,11 +178,20 @@
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"execution_count": 7,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"(1L, 'Audi', 52642L)"
]
},
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"cursor=conn.cursor()\n",
"cursor.execute(\"\"\"SELECT * FROM Cars\"\"\")\n",
Expand All @@ -191,13 +207,28 @@
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"execution_count": 8,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n",
"Show me the rows from the table:\n",
"\n",
"((2L, 'Mercedes', 57127L),\n",
" (3L, 'Skoda', 9000L),\n",
" (4L, 'Volvo', 29000L),\n",
" (5L, 'Bentley', 350000L),\n",
" (6L, 'Citroen', 21000L),\n",
" (7L, 'Hummer', 41400L),\n",
" (8L, 'Volkswagen', 21600L))\n"
]
}
],
"source": [
"print \"\\nShow me the databases:\\n\"\n",
"print \"\\nShow me the rows from the table:\\n\"\n",
"rows = cursor.fetchall()\n",
"import pprint\n",
"pprint.pprint(rows)"
Expand All @@ -213,10 +244,8 @@
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"execution_count": 9,
"metadata": {},
"outputs": [],
"source": [
"conn.close()"
Expand All @@ -236,7 +265,7 @@
"metadata": {},
"source": [
"## Want to learn more?\n",
"### Free courses on <a href=\"https://bigdatauniversity.com/courses/?utm_source=tutorial-dashdb-python&utm_medium=github&utm_campaign=bdu/\" rel=\"noopener noreferrer\" target=\"_blank\">Big Data University</a>: <a href=\"https://bigdatauniversity.com/courses/?utm_source=tutorial-dashdb-python&utm_medium=github&utm_campaign=bdu\" rel=\"noopener noreferrer\" target=\"_blank\"><img src = \"https://ibm.box.com/shared/static/xomeu7dacwufkoawbg3owc8wzuezltn6.png\" width=600px> </a>"
"### Free courses on <a href=\"https://bigdatauniversity.com/courses/?utm_source=tutorial-dashdb-python&utm_medium=github&utm_campaign=bdu/\" rel=\"noopener noreferrer\" target=\"_blank\">Cognitive Class</a>: <a href=\"https://bigdatauniversity.com/courses/?utm_source=tutorial-dashdb-python&utm_medium=github&utm_campaign=bdu\" rel=\"noopener noreferrer\" target=\"_blank\"><img src = \"https://ibm.box.com/shared/static/xomeu7dacwufkoawbg3owc8wzuezltn6.png\" width=600px> </a>"
]
},
{
Expand All @@ -254,15 +283,15 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Copyright © 2016 Big Data University. This notebook and its source code are released under the terms of the <a href=\"https://bigdatauniversity.com/mit-license/\" rel=\"noopener noreferrer\" target=\"_blank\">MIT License</a>."
"Copyright © 2016, 2018 Cognitive Class. This notebook and its source code are released under the terms of the <a href=\"https://bigdatauniversity.com/mit-license/\" rel=\"noopener noreferrer\" target=\"_blank\">MIT License</a>."
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 2 with Spark 2.0",
"display_name": "Python 2 with Spark 2.1",
"language": "python",
"name": "python2-spark20"
"name": "python2-spark21"
},
"language_info": {
"codemirror_mode": {
Expand Down
12,203 changes: 12,132 additions & 71 deletions Cloud/Archive/Access+MySQL+with+Python.html
100644 → 100755

Large diffs are not rendered by default.

38 changes: 23 additions & 15 deletions Cloud/Archive/Access+MySQL+with+Python.ipynb
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
"\n",
"This notebook shows how to access a MySQL database when using Python.\n",
"\n",
"This notebook runs on Python with Spark 2.0.\n",
"\n",
"## Table of contents\n",
"\n",
"1. [Setup](#Setup) \n",
Expand Down Expand Up @@ -37,18 +39,24 @@
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"execution_count": 1,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Requirement already satisfied: MySQL-python in /usr/local/src/bluemix_jupyter_bundle.v52/notebook/lib/python2.7/site-packages\r\n"
]
}
],
"source": [
"!pip install MySQL-python --user"
]
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 2,
"metadata": {
"collapsed": true
},
Expand Down Expand Up @@ -95,7 +103,7 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
"collapsed": true
},
"outputs": [],
"source": [
Expand All @@ -117,7 +125,7 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
"collapsed": true
},
"outputs": [],
"source": [
Expand All @@ -138,7 +146,7 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
"collapsed": true
},
"outputs": [],
"source": [
Expand All @@ -165,7 +173,7 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
"collapsed": true
},
"outputs": [],
"source": [
Expand All @@ -185,7 +193,7 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
"collapsed": true
},
"outputs": [],
"source": [
Expand Down Expand Up @@ -252,9 +260,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 2 with Spark 1.6",
"display_name": "Python 2 with Spark 2.0",
"language": "python",
"name": "python2"
"name": "python2-spark20"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -270,5 +278,5 @@
}
},
"nbformat": 4,
"nbformat_minor": 0
}
"nbformat_minor": 1
}
10 changes: 5 additions & 5 deletions Cloud/Archive/Access+MySQL+with+R.html
Original file line number Diff line number Diff line change
Expand Up @@ -12632,11 +12632,11 @@ <h2 id="Identify-and-enter-the-database-connection-credentials">Identify and ent
<div class="inner_cell">
<div class="input_area">
<div class=" highlight hl-r"><pre><span class="c1">#Enter the values for you database connection</span>
dsn_database <span class="o">=</span> <span class="s">&quot;test_db&quot;</span> <span class="c1"># for example &quot;BLUDB&quot;</span>
dsn_hostname <span class="o">=</span> <span class="s">&quot;bluemix-sandbox-dal-9-portal.0.dblayer.com&quot;</span> <span class="c1"># for example &quot;mydbinstance.cz6pjylrdjko.us-east-1.rds.amazonaws.com&quot;</span>
dsn_port <span class="o">=</span> <span class="m">28416</span> <span class="c1"># for example 3306 without quotation marks</span>
dsn_uid <span class="o">=</span> <span class="s">&quot;admin&quot;</span> <span class="c1"># for example &quot;user1&quot;</span>
dsn_pwd <span class="o">=</span> <span class="s">&quot;JZZKPRKLGGWPUNLL&quot;</span> <span class="c1"># for example &quot;7dBZ3jWt9xN6$o0JiX!m&quot;</span>
dsn_database <span class="o">=</span> <span class="s">&quot; &quot;</span> <span class="c1"># for example &quot;BLUDB&quot;</span>
dsn_hostname <span class="o">=</span> <span class="s">&quot; &quot;</span> <span class="c1"># for example &quot;mydbinstance.cz6pjylrdjko.us-east-1.rds.amazonaws.com&quot;</span>
dsn_port <span class="o">=</span> <span class="c1"># for example 3306 without quotation marks</span>
dsn_uid <span class="o">=</span> <span class="s">&quot; &quot;</span> <span class="c1"># for example &quot;user1&quot;</span>
dsn_pwd <span class="o">=</span> <span class="s">&quot; &quot;</span> <span class="c1"># for example &quot;7dBZ3jWt9xN6$o0JiX!m&quot;</span>
</pre></div>

</div>
Expand Down
10 changes: 5 additions & 5 deletions Cloud/Archive/Access+MySQL+with+R.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,11 @@
"outputs": [],
"source": [
"#Enter the values for you database connection\n",
"dsn_database = \"test_db\" # for example \"BLUDB\"\n",
"dsn_hostname = \"bluemix-sandbox-dal-9-portal.0.dblayer.com\" # for example \"mydbinstance.cz6pjylrdjko.us-east-1.rds.amazonaws.com\"\n",
"dsn_port = 28416 # for example 3306 without quotation marks\n",
"dsn_uid = \"admin\" # for example \"user1\"\n",
"dsn_pwd = \"JZZKPRKLGGWPUNLL\" # for example \"7dBZ3jWt9xN6$o0JiX!m\""
"dsn_database = \" \" # for example \"BLUDB\"\n",
"dsn_hostname = \" \" # for example \"mydbinstance.cz6pjylrdjko.us-east-1.rds.amazonaws.com\"\n",
"dsn_port = # for example 3306 without quotation marks\n",
"dsn_uid = \" \" # for example \"user1\"\n",
"dsn_pwd = \" \" # for example \"7dBZ3jWt9xN6$o0JiX!m\""
]
},
{
Expand Down
Loading