[data-platform] filter tool adds unexpected __index_level_0__ column #205

Closed
opened 2026-01-26 22:21:39 +00:00 by lmiranda · 0 comments
Owner

User-Reported Issue

Reported: 2026-01-26
Reporter: Claude Code via /debug-report

Context

Field Value
Plugin data-platform
Command filter
Repository personal-projects/personal-portfolio

Problem Description

Goal

Filter DataFrame rows and get result with same schema as source.

What Happened

Problem Type: Unexpected behavior

The filter tool adds an extra __index_level_0__ column to the result DataFrame.

Example:

  • Original (sales): 4 columns - date, product, quantity, price
  • After filter: 5 columns - date, product, quantity, price, index_level_0

Expected Behavior

Filtered DataFrame should have same columns as source (4, not 5).

Workaround

None identified.

Investigation Hints

  • Check mcp-servers/data-platform/mcp_server/tools/dataframe_ops.py
  • The index may be getting converted to a column when storing

Suggested Fix

Use .reset_index(drop=True) after filtering before storing.


Generated by /debug-report

## User-Reported Issue **Reported**: 2026-01-26 **Reporter**: Claude Code via /debug-report ## Context | Field | Value | |-------|-------| | Plugin | `data-platform` | | Command | `filter` | | Repository | `personal-projects/personal-portfolio` | ## Problem Description ### Goal Filter DataFrame rows and get result with same schema as source. ### What Happened **Problem Type**: Unexpected behavior The `filter` tool adds an extra `__index_level_0__` column to the result DataFrame. **Example:** - Original (sales): 4 columns - date, product, quantity, price - After filter: 5 columns - date, product, quantity, price, __index_level_0__ ### Expected Behavior Filtered DataFrame should have same columns as source (4, not 5). ## Workaround None identified. ## Investigation Hints - Check `mcp-servers/data-platform/mcp_server/tools/dataframe_ops.py` - The index may be getting converted to a column when storing ## Suggested Fix Use `.reset_index(drop=True)` after filtering before storing. --- *Generated by /debug-report*
lmiranda added the Component/APIType/Bug labels 2026-01-26 22:21:39 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: personal-projects/leo-claude-mktplace#205