Skip to content

Conversation

@izzet
Copy link
Collaborator

@izzet izzet commented Jan 29, 2026

This pull request introduces a version constraint on the pandas dependency and refines type checking for string columns in the set_layer_metrics function to improve compatibility and robustness.

Dependency management:

  • Updated the pyproject.toml to restrict the pandas dependency to versions >=2.2.0,<3.0.0 to prevent compatibility issues with future major releases.

Code robustness and pandas compatibility:

  • In python/dftracer/analyzer/analyzer.py, replaced direct checks for "object" dtype with pd.api.types.is_string_dtype for more accurate and future-proof string column detection in the set_layer_metrics function. This improves handling of string columns and aligns with best practices for pandas type checking.

@izzet izzet self-assigned this Jan 29, 2026
@izzet izzet added the enhancement New feature or request label Jan 29, 2026
@izzet izzet marked this pull request as ready for review January 29, 2026 00:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant