Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mooc-rr
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
7404ea6678ce6fbf3a726e36f2bf2079
mooc-rr
Commits
2101a6e8
Commit
2101a6e8
authored
Oct 07, 2024
by
7404ea6678ce6fbf3a726e36f2bf2079
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
delete debug print lines
parent
9d665c57
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
62 deletions
+6
-62
exercice_fr.ipynb
module3/exo3/exercice_fr.ipynb
+6
-62
No files found.
module3/exo3/exercice_fr.ipynb
View file @
2101a6e8
...
...
@@ -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 @@
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>746</th>\n",
" <td>4</td>\n",
" <td>La Flèche</td>\n",
" <td>Cléante</td>\n",
" <td>6</td>\n",
" <td>11</td>\n",
" </tr>\n",
" <tr>\n",
" <th>748</th>\n",
" <td>4</td>\n",
" <td>La Flèche</td>\n",
" <td>Cléante</td>\n",
" <td>6</td>\n",
" <td>8</td>\n",
" </tr>\n",
" <tr>\n",
" <th>750</th>\n",
" <td>4</td>\n",
" <td>La Flèche</td>\n",
" <td>Cléante</td>\n",
" <td>6</td>\n",
" <td>3</td>\n",
" </tr>\n",
" <tr>\n",
" <th>752</th>\n",
" <td>4</td>\n",
" <td>La Flèche</td>\n",
" <td>Cléante</td>\n",
" <td>6</td>\n",
" <td>7</td>\n",
" </tr>\n",
" <tr>\n",
" <th>754</th>\n",
" <td>4</td>\n",
" <td>La Flèche</td>\n",
" <td>Cléante</td>\n",
" <td>6</td>\n",
" <td>9</td>\n",
" </tr>\n",
" <tr>\n",
" <th>756</th>\n",
" <td>4</td>\n",
" <td>La Flèche</td>\n",
" <td>Cléante</td>\n",
" <td>6</td>\n",
" <td>9</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"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)]"
]
},
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment