From the course: Complete Guide to Advanced SQL Server
Unlock the full course today
Join today to access over 24,600 courses taught by industry experts.
Challenge: Import and process data - SQL Server Tutorial
From the course: Complete Guide to Advanced SQL Server
Challenge: Import and process data
In this chapter, we've taken a look at several techniques for importing, slicing, and working with tabular data. Let's apply that knowledge to another challenge. In the Warehouse.ColdRoomTemperatures table, you'll find a column called Temperature. It only contains four values and their measurements in degrees Celsius. I'd like you to import these into Python, then output a DataFrame with two columns, one with the original Celsius values and one with Fahrenheit equivalents. To do this, you'll need to know the conversion formula between the two temperature scales. Fahrenheit is equal to Celsius times 1.8 plus 32. This challenge should take 10 minutes or less to complete. Good luck.
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
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
(Locked)
Return values with indexes and series6m 8s
-
(Locked)
Convert a series to a DataFrame4m 40s
-
(Locked)
Add multiple series to a DataFrame3m 12s
-
(Locked)
Include the index in a DataFrame4m 44s
-
(Locked)
Slice a DataFrame to series4m 23s
-
(Locked)
Challenge: Import and process data52s
-
(Locked)
Solution: Import and process data6m 44s
-
(Locked)
-
-
-
-