Merci pour la mise à jour collège, mais voici la nouvelle erreur que j'obtiens:
Récupération de la liste des candidats (max = 3000 élèves)
Traceback (most recent call last):
File "Preparation-Documents-PIX-certif/exploitation_auto_pix_certif.py", line 201, in <module>
sortie_dossier(sessions_detail,candidats,code_non_certifiables,sortie_html,sortie_pdf,page_garde,code_surveillant)
File "Preparation-Documents-PIX-certif/exploitation_auto_pix_certif.py", line 125, in sortie_dossier
texte_HTML +=page_de_garde_html(session_detail,consignes_html)
File "Preparation-Documents-PIX-certif/exploitation_auto_pix_certif.py", line 81, in page_de_garde_html
texte_HTML += session_detail.loc[:,['Numéro Session',"Code d'accès",'Code non certifiables','Mot de passe de session - Surveillant']].to_html(index=False)
File "/usr/lib/python3.10/site-packages/pandas/core/indexing.py", line 961, in __getitem__
return self._getitem_tuple(key)
File "/usr/lib/python3.10/site-packages/pandas/core/indexing.py", line 1149, in _getitem_tuple
return self._getitem_tuple_same_dim(tup)
File "/usr/lib/python3.10/site-packages/pandas/core/indexing.py", line 827, in _getitem_tuple_same_dim
retval = getattr(retval, self.name)._getitem_axis(key, axis=i)
File "/usr/lib/python3.10/site-packages/pandas/core/indexing.py", line 1191, in _getitem_axis
return self._getitem_iterable(key, axis=axis)
File "/usr/lib/python3.10/site-packages/pandas/core/indexing.py", line 1132, in _getitem_iterable
keyarr, indexer = self._get_listlike_indexer(key, axis)
File "/usr/lib/python3.10/site-packages/pandas/core/indexing.py", line 1327, in _get_listlike_indexer
keyarr, indexer = ax._get_indexer_strict(key, axis_name)
File "/usr/lib/python3.10/site-packages/pandas/core/indexes/base.py", line 5782, in _get_indexer_strict
self._raise_if_missing(keyarr, indexer, axis_name)
File "/usr/lib/python3.10/site-packages/pandas/core/indexes/base.py", line 5845, in _raise_if_missing
raise KeyError(f"{not_found} not in index")
KeyError: "['Mot de passe de session - Surveillant'] not in index"
Merci pour la mise à jour collège, mais voici la nouvelle erreur que j'obtiens: