Summary
In this chapter, we saw how we could get both code and data into our notebooks from external sources.
While you could write all the code you need in one notebook, in reality, most of the time you’ll need to reference code either in an external file or code defined in an external assembly, such as a local .dll
file or a package in a NuGet feed.
We introduced how the #!import
magic command helps pull in code from files or notebooks and how #r
allows you to reference external assemblies.
We also discussed how important data is to data analysis and data science tasks, and how it can come from a variety of sources. We saw how to import CSV, TSV, and other delimited files. We also saw how to make HTTP requests to external APIs using PowerShell and how to query data stores, using SQL and KQL. We also saw how you can populate a DataFrame
from a list of any .NET objects that you happen to have available.
All of these different paths of getting data into your notebook...