From the course: Advanced Python: Practical Database Examples
Unlock the full course today
Join today to access over 24,500 courses taught by industry experts.
Visualize data using SQLAlchemy, pandas, and Matplotlib - Python Tutorial
From the course: Advanced Python: Practical Database Examples
Visualize data using SQLAlchemy, pandas, and Matplotlib
- [Instructor] In order to use data in our application, we'll need to import it. In fact, we can load the data directly into a Pandas data frame making it really easy to work with. We can use the read SQL table method to load a table from the database. The table is called salespeople and we'll pass in our engine's connection. While adding just these two arguments will work, we can actually be more specific in importing our data. Extra parameters make sure the data's read in as expected. Let's walk through these parameters. The index column allows you to pass your primary key or another column you want to use as an index to your Pandas data frame. Coerce float looks at the columns containing numerical values and tries to convert these columns to use floating point numbers where valid. It's automatically set to true by default. Columns allows us to create a data frame with specific columns from our database, excluding…
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
-
-
-