40 Algorithms Every Programmer Should Know
上QQ阅读APP看书,第一时间看更新

Creating a subset of a DataFrame

Fundamentally, there are two main ways of creating the subset of a DataFrame (say the name of the subset is myDF):

  • Column selection
  • Row selection

Let's see them one by one.