From the course: Advanced Python: Practical Database Examples
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Connect to a DB using SQLAlchemy within Juypter Notebook - Python Tutorial
From the course: Advanced Python: Practical Database Examples
Connect to a DB using SQLAlchemy within Juypter Notebook
- [Instructor] While reading CSV data and manipulating it with Pandas is interesting. It would be even more interesting to integrate SQLAlchemy so we can access data from a live database. In our virtual environment, let's install a module that lets us connect to a database from our application. We'll be connecting to a SQLite database but you could connect to a different type of database as well. Let's install SQLAlchemy. Let's start up Jupyter Notebook. Our database is stored in a file called Salespeople SQLite and it's located in the exercise file, specifically in our Panda's workspace. This database has a single table called salespeople that lists different sales representatives working for the company. Let's use SQLAlchemy to connect to this database. We'll use Create Engine to connect to the database. Salespeople SQLite. While this is fine and dandy, we might want to make our application a little more dynamic.…
Contents
-
-
-
-
Introduction to pandas2m 12s
-
(Locked)
Set up pandas and Jupyter Notebook2m 10s
-
(Locked)
Analyze data with pandas3m 30s
-
(Locked)
Analyze data with Matplotlib1m 29s
-
(Locked)
Connect to a DB using SQLAlchemy within Juypter Notebook2m 33s
-
(Locked)
Visualize data using SQLAlchemy, pandas, and Matplotlib3m 30s
-
(Locked)
Challenge: Ingest data and visualize it with Matplotlib1m 7s
-
(Locked)
Solution: Ingest data and visualize it using Matplotlib4m 9s
-
-
-