[data-platform] filter tool adds unexpected __index_level_0__ column #206
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
User-Reported Issue
Reported: 2026-01-26
Reporter: Claude Code via /debug-report
Context
data-platformfilterpersonal-projects/personal-portfolioProblem Description
Goal
Filter DataFrame rows and get result with same schema as source.
What Happened
Problem Type: Unexpected behavior
The
filtertool adds an extra__index_level_0__column to the result DataFrame.Example:
Expected Behavior
Filtered DataFrame should have same columns as source (4, not 5).
Workaround
None identified.
Investigation Hints
mcp-servers/data-platform/mcp_server/tools/dataframe_ops.pySuggested Fix
Use
.reset_index(drop=True)after filtering before storing.Generated by /debug-report