Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 27 additions & 12 deletions your-code/.ipynb_checkpoints/main-checkpoint.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": []
"source": [
"import pandas as pd"
]
},
{
"cell_type": "markdown",
Expand All @@ -23,10 +25,14 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": []
"source": [
"import pymysql\n",
"import sqlalchemy as db\n",
"from sqlalchemy import create_engine"
]
},
{
"cell_type": "markdown",
Expand All @@ -37,10 +43,15 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": []
"source": [
"# engine = db.create_engine('dialect+driver://user:pass@host:port/db') --> From TDS\n",
"# pymssql\n",
"# engine = create_engine('mssql+pymssql://scott:tiger@hostname:port/dbname')\n",
"engine = create_engine('mysql+pymysql://guest:relational@relational.fit.cvut.cz:3306')"
]
},
{
"cell_type": "markdown",
Expand All @@ -51,10 +62,14 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": []
"source": [
"connection = engine.connect()\n",
"#usersTable = pd.read_sql_query('SELECT * FROM stats.users;')\n",
"#usersTable.head()"
]
},
{
"cell_type": "markdown",
Expand All @@ -79,7 +94,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
Expand All @@ -93,7 +108,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
Expand Down Expand Up @@ -124,7 +139,7 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
Expand Down Expand Up @@ -196,7 +211,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.5"
"version": "3.7.6"
}
},
"nbformat": 4,
Expand Down
Loading