microsoft / FLAML

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

Add logging import and logger initialization in spark module #1307

Open Programmer-RD-AI opened 1 month ago

Programmer-RD-AI commented 1 month ago

This pull request adds an import statement for the logging module and initializes a logger object in the spark module of FLAML. The logger is used to issue a warning message if pandas is not installed. This ensures that users are notified if they attempt to use DataFrame and Series functionalities without having pandas installed, providing them with guidance on resolving the issue.

Why are these changes needed?

This change is necessary to improve user experience by providing clear and informative warning messages when pandas is not installed. It helps users understand why certain functionalities may not work as expected and guides them on how to resolve the issue.

Related issue number

1262