Split DateTime column into separate Date and Time Columns

This operation does two things:

  1. hcat(G, F) creates a new value (not changing values bound to G or F).
  2. bind this new value to variable F (thus overwriting the old binding).

So the value originally bound to F is not changed by this operation (but F after the operation will be bound to the new value).

The crucial thing you need to remember is that in Julia only values can be mutated (if they support mutation). Variables are never mutated. Variable names are only bindings to values.

1 Like