Skip to content

Conversation

@eschmidt42
Copy link
Owner

This pull request makes a minor update to the way bin edges are passed to pd.cut in the xgboost.py module. The change ensures compatibility by converting numpy arrays of bin edges to Python lists before passing them to pd.cut.

  • Compatibility improvements:
    • In both xgboost_histogrammify_with_h and xgboost_histogrammify_with_x_bin_edges, bin edge arrays are now converted to lists using .tolist() before being used as the bins parameter in pd.cut. [1] [2]

@eschmidt42 eschmidt42 merged commit 8bf0adc into main Aug 16, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants