Why am I getting this when building a Logistic Regression model and please kindly guide how to resolve it?

C:\Users\HP\Anaconda_3\Anaconda3\lib\site-packages\sklearn\linear_model\_logistic.py:764: ConvergenceWarning: lbfgs failed to converge (status=1):
STOP: TOTAL NO. of ITERATIONS REACHED LIMIT.Increase the number of iterations (max_iter) or scale the data as shown in:
[https://scikit-learn.org/stable/modules/preprocessing.html](https://slack-redir.net/link?url=https%3A%2F%2Fscikit-learn.org%2Fstable%2Fmodules%2Fpreprocessing.html)
Please also refer to the documentation for alternative solver options:
[https://scikit-learn.org/stable/modules/linear_model.html#logistic-regression](https://slack-redir.net/link?url=https%3A%2F%2Fscikit-learn.org%2Fstable%2Fmodules%2Flinear_model.html%23logistic-regression)
extra_warning_msg=_LOGISTIC_SOLVER_CONVERGENCE_MSG)

Try setting max_iter
LogisticRegression(max_iter=1000)

max_iter is a hyperparameter which represents the max number of iterations required to pass a batch of data to the model