From the course: Python in Excel: Data Outputs in Custom Data Visualizations and Algorithms
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Leveraging Power Query
From the course: Python in Excel: Data Outputs in Custom Data Visualizations and Algorithms
Leveraging Power Query
- [Instructor] To get our data into Excel, we can either start with our data already in the model or connect to external data sources. It's important to emphasize that we cannot connect directly to a database or API within Python code in Excel. Instead, we want to leverage the power of Power Query to bring our data into the Excel model. Power Query is a built-in part of Power BI in Excel that enables us to easily set up ETL frameworks to read the data into our Excel models. It enables us to efficiently replicate and update our queries to create data tables. In Excel, one way we can access Power Query is from the Data ribbon tab. Then we'll choose Launch Power Query Editor from the dropdown menu. I've already set up two data queries in Power Query on the left side, one for the average temperatures by city and the other for the daily temperatures for the Santa Barbara airport. We're not going to get into the granular detail for the actual steps for creating the data tables ultimately…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
Breaking down Excel and Python processes1m 48s
-
(Locked)
Leveraging Power Query6m 32s
-
(Locked)
Using the PY Excel function3m 44s
-
(Locked)
Using the XL Excel function and Python variables4m 23s
-
(Locked)
Determining calculation order4m 31s
-
(Locked)
Importing Python libraries into Excel3m 20s
-
(Locked)
Managing errors4m 14s
-
(Locked)
Working with Python objects7m 3s
-
(Locked)
Transforming DataFrame objects7m 41s
-
(Locked)
Challenge: Creating table objects in Excel2m 15s
-
(Locked)
Solution: Creating table objects in Excel3m 9s
-
-
-
-