microsoft / FLAML

A fast library for AutoML and tuning. Join our Discord: https://discord.gg/Cppx2vSPVP.
https://microsoft.github.io/FLAML/
MIT License
3.76k stars 495 forks source link

pandas 2.0 support #984

Open fermiyon opened 1 year ago

fermiyon commented 1 year ago

Summary

pandas 2.0 support

Description

When attempting to import AutoML with 'from flaml import AutoML', I received an error due to pandas 2.0. The error message stated 'AttributeError: module 'pandas.core.strings' has no attribute 'StringMethods'.'

However, after downgrading pandas to version 1.5.3, the issue was resolved.

fermiyon commented 1 year ago

Solution

As pointed out in https://github.com/microsoft/LightGBM/issues/5739#issuecomment-1500809138, upgrading Dask resolved the issue.

harshvardhaniimi commented 1 year ago

The aforementioned issue has been reopened as LightGBM has issues with the PyArrow backend of new pandas.

thinkall commented 2 months ago

The aforementioned issue has been reopened as LightGBM has issues with the PyArrow backend of new pandas.

Thanks @harshvardhaniimi , does the issue still exist? I don't see the issue in my env.