Unless you are able to constantly moniter and update changes in this post, please DO NOT repost it anywere. Feel free to share the link, though.

This post is tested under Julia v1.6.1 and DataFrames v1.2.0.

A simple example:

using DataFrames
name = [“Julia”, “Mike”, “Tom”, “John”]
x = [2, missing, 4, missing]
y = [missing, 3, missing, 5]
df = DataFrame(:name => name, :var1 => x, :var2 => y)
<code …