Fundamentally, there are two main ways of creating the subset of a DataFrame (say the name of the subset is myDF):
Let's see them one by one.