5 Advanced topics on handling collections

This chapter covers

  • Vectorizing your code, aka broadcasting
  • Understanding subtyping rules for parametric types
  • Integrating Julia with Python
  • Performing t-SNE dimensionality reduction

You already know from chapter 2 how to process vectors by using loops, the map function, and comprehensions. This chapter introduces another way that is commonly used in practice: broadcasting.

Section 5.2 explains a more advanced topic related to rules of subtyping for parametric types that often raises questions from people learning Julia. This issue is closely linked with collections because, as you will learn in this chapter, types of the most common collections like arrays or dictionaries are parametric. For this reason, ...

Get Julia for Data Analysis now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.