12 Mutating and transforming data frames

This chapter covers

  • Extracting data from ZIP archives
  • Adding and mutating columns of a data frame
  • Performing split-apply-combine transformations of data frames
  • Working with graphs and analyzing their properties
  • Creating complex plots

In chapters 8-11, you learned to create data frames and extract data from them. It is time to discuss ways in which data frames can be mutated. By data frame mutation, I mean creating new columns by using data from existing columns. For example, you might have a date column in a data frame and want to create a new column that stores the year extracted from this date. In DataFrames.jl, you can achieve this objective in two ways:

  • Update the source data frame in place by ...

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.