Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 1.35 KB

File metadata and controls

42 lines (28 loc) · 1.35 KB

Create Subsets

{% embed url="https://www.youtube.com/watch?v=4wsSjG0u6bk" %}

To Create Subsets

  1. Click on the Subset app.
  2. Select a variable(DataFrame or Series) to subset .
  3. Select the method:

{% hint style="info" %}

  • loc (location): to select rows/columns by label/index/conditions.
  • iloc (integer location): to select rows/columns by number. {% endhint %}

Subset Rows

  1. Select the method from Row Subset box on the left.
  2. Select rows/a range of rows, or Specify conditions:

{% hint style="info" %}

  • Indexing: to select individual items
  • Slicing: to select a sequence of elements
  • Condition: to filter data with the condition {% endhint %}

Subset Columns

  1. Select the method from Column Subset box on the right.
  2. Select columns/a range of columns:

{% hint style="info" %}

  • Indexing: to select individual items
  • Slicing: to select a sequence of elements {% endhint %}

and then, Run !