diff --git a/module3/exo3/exercice_fr.ipynb b/module3/exo3/exercice_fr.ipynb
index e6b5b18d64d2bdcc213c458f24631bd57519f004..ccf0f7bb00e09250d1deef9cd9709d6fd6668e86 100644
--- a/module3/exo3/exercice_fr.ipynb
+++ b/module3/exo3/exercice_fr.ipynb
@@ -562,8 +562,6 @@
" if currentLine.startswith(\" \"):\n",
" # La ligne commence avec un espace, elle déclare donc l'auteur d'une réplique\n",
" # on va parcourir la liste des protagonistes de la scène et identifier l'auteur\n",
- " if actNum==4 and sceneNum==7:\n",
- " print(\"persosList : {}\".format(scenePersoList))\n",
" for perso in scenePersoList:\n",
" # On fait une recherche ignorant si les lettres sont en majuscules ou minuscules\n",
" # grâce à l'option passée à la fonction de recherche d'expression régulière\n",
@@ -655,7 +653,6 @@
" else:\n",
" # La ligne est vide on sait que c'est le cas particulier\n",
" # le seul protagoniste est Harpagon\n",
- " print(\"Exception scene 7 of act 4\")\n",
" scenePersoList.append('Harpagon')\n",
" #print(\"*********************************\")\n",
" #print(\"Liste des personnages de la scène\")\n",
@@ -1370,7 +1367,7 @@
},
{
"cell_type": "code",
- "execution_count": 15,
+ "execution_count": 20,
"metadata": {},
"outputs": [
{
@@ -1402,76 +1399,23 @@
" \n",
" \n",
"
\n",
- " \n",
- " 746 | \n",
- " 4 | \n",
- " La Flèche | \n",
- " Cléante | \n",
- " 6 | \n",
- " 11 | \n",
- "
\n",
- " \n",
- " 748 | \n",
- " 4 | \n",
- " La Flèche | \n",
- " Cléante | \n",
- " 6 | \n",
- " 8 | \n",
- "
\n",
- " \n",
- " 750 | \n",
- " 4 | \n",
- " La Flèche | \n",
- " Cléante | \n",
- " 6 | \n",
- " 3 | \n",
- "
\n",
- " \n",
- " 752 | \n",
- " 4 | \n",
- " La Flèche | \n",
- " Cléante | \n",
- " 6 | \n",
- " 7 | \n",
- "
\n",
- " \n",
- " 754 | \n",
- " 4 | \n",
- " La Flèche | \n",
- " Cléante | \n",
- " 6 | \n",
- " 9 | \n",
- "
\n",
- " \n",
- " 756 | \n",
- " 4 | \n",
- " La Flèche | \n",
- " Cléante | \n",
- " 6 | \n",
- " 9 | \n",
- "
\n",
" \n",
"\n",
""
],
"text/plain": [
- " act author recipient scene speech_length\n",
- "746 4 La Flèche Cléante 6 11\n",
- "748 4 La Flèche Cléante 6 8\n",
- "750 4 La Flèche Cléante 6 3\n",
- "752 4 La Flèche Cléante 6 7\n",
- "754 4 La Flèche Cléante 6 9\n",
- "756 4 La Flèche Cléante 6 9"
+ "Empty DataFrame\n",
+ "Columns: [act, author, recipient, scene, speech_length]\n",
+ "Index: []"
]
},
- "execution_count": 15,
+ "execution_count": 20,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
- "debugDf = textDataSynthesisTableDf[textDataSynthesisTableDf[\"author\"]==\"La Flèche\"]\n",
- "debugDf[debugDf[\"act\"]==float(4)]"
+ " textDataSynthesisTableDf[textDataSynthesisTableDf.isna().any(axis=1)]"
]
},
{