My app was working a week ago and today I found that it’s broked due to this error. I’ve been checking and I’m not able to load any dataframe due to the sale error and I’ve been trying some solutions but I didn’t found the good one. The error I’m writing below is the one that appears when I try to load a dataframe to use machine learning. Please, can someone help me?
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/script_runner.py", line 379, in _run_script
exec(code, module.__dict__)
File "/app/eurovision_game_streamlit/main/streamlit_ESC.py", line 834, in <module>
ctr.fit(X_train, y_train)
File "/home/appuser/venv/lib/python3.9/site-packages/catboost/core.py", line 5300, in fit
return self._fit(X, y, cat_features, None, None, None, sample_weight, None, None, None, None, baseline,
File "/home/appuser/venv/lib/python3.9/site-packages/catboost/core.py", line 2021, in _fit
train_params = self._prepare_train_params(
File "/home/appuser/venv/lib/python3.9/site-packages/catboost/core.py", line 1907, in _prepare_train_params
train_pool = _build_train_pool(X, y, cat_features, text_features, embedding_features, pairs,
File "/home/appuser/venv/lib/python3.9/site-packages/catboost/core.py", line 1189, in _build_train_pool
train_pool = Pool(X, y, cat_features=cat_features, text_features=text_features, embedding_features=embedding_features, pairs=pairs, weight=sample_weight, group_id=group_id,
File "/home/appuser/venv/lib/python3.9/site-packages/catboost/core.py", line 628, in __init__
self._init(data, label, cat_features, text_features, embedding_features, pairs, weight, group_id, group_weight, subgroup_id, pairs_weight, baseline, timestamp, feature_names, thread_count)
File "/home/appuser/venv/lib/python3.9/site-packages/catboost/core.py", line 1171, in _init
self._init_pool(data, label, cat_features, text_features, embedding_features, pairs, weight, group_id, group_weight, subgroup_id, pairs_weight, baseline, timestamp, feature_names, thread_count)
File "_catboost.pyx", line 3751, in _catboost._PoolBase._init_pool
File "_catboost.pyx", line 3799, in _catboost._PoolBase._init_pool
File "_catboost.pyx", line 3634, in _catboost._PoolBase._init_features_order_layout_pool
File "_catboost.pyx", line 2604, in _catboost._set_features_order_data_pd_data_frame
File "/home/appuser/venv/lib/python3.9/site-packages/pandas/core/generic.py", line 5989, in __getattr__
return object.__getattribute__(self, name)
AttributeError: 'DataFrame' object has no attribute 'iteritems'