Slicing Controls
Upload Your Data
Drag & drop your CSV file here
or
No file selected. Using sample data.
Understanding Slicing
Pandas slicing uses the start:stop:step syntax to select portions of DataFrames.
start: Beginning index (inclusive)
stop: Ending index (exclusive)
step: Step size between elements
:
:
:
:
Slicing Information
Row Slice:
0:5:1
Column Slice:
0:3:1
Selected Cells:
15 cells
# Slicing code will appear here
# Example: df.iloc[0:5:1, 0:3:1]
How to Use
1. Set row and column start, stop, and step values
2. Click "Apply Slicing" to see the selection
3. View the generated Pandas code
4. Try different step sizes and ranges
DataFrame Visualization
Slicing Syntax
start
:
stop
:
step
Note: The stop index is exclusive in Python slicing.
Empty values mean "from beginning" (start) or "to end" (stop).
DataFrame Grid - Drag to select or use controls above
Common Slicing Examples
First 5 rows, all columns
df.iloc[:5, :]
Every other row, columns 2-5
df.iloc[::2, 2:6]
Reverse order rows
df.iloc[::-1, :]
Every 3rd row, last 4 columns
df.iloc[::3, -4:]