{% embed url="https://www.youtube.com/watch?v=4wsSjG0u6bk" %}
- Click on the Subset app.
- Select a variable(DataFrame or Series) to subset .
- 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
- Select the method from Row Subset box on the left.
- 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
- Select the method from Column Subset box on the right.
- 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 !
.png)
.png)