
LightGBM predict on Pandas DataFrame - Column Order Matters
When using machine learning models like LightGBM, it is important to keep the order of columns consistent in your data, even when using Pandas DataFrames. I was surprised to find that changing the column order after training can affect prediction results, a detail even ChatGPT missed.