Skip to content

Commit

Permalink
Update extracting-keywords.md
Browse files Browse the repository at this point in the history
Fix html code in div box
  • Loading branch information
charlottejmc authored Jan 22, 2025
1 parent 3074812 commit 5560542
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion en/lessons/extracting-keywords.md
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ with open('The_Dataset_-_Alumni_Oxonienses-Jas1.csv') as csvfile:
```

<div class="alert alert-warning">
Some users may encounter a file encoding error when executing the code to read this CSV file. To resolve this, we suggest including the <code>encoding='latin1'</code> parameter, like this: <code>with open('The_Dataset_-_Alumni_Oxonienses-Jas1.csv</code>, encoding='latin1') as csvfile:`
Some users may encounter a file encoding error when executing the code to read this CSV file. To resolve this, we suggest including the <code>encoding='latin1'</code> parameter, like this: <code>with open('The_Dataset_-_Alumni_Oxonienses-Jas1.csv, encoding='latin1') as csvfile:</code>
</div>

As this is an advanced option, I won't explain what every line does in detail, but you can take a look at the comments in the code to get an idea. Effectively this uses Python to read the CSV file and stores all of the information in the 'Details' column in the same 'allTexts' variable that we had it in previously, in exactly the same format as before. This code also stores each row of the CSV file into another list called 'fullRow', which will be used for writing a new CSV file containing our program's outputs.
Expand Down

0 comments on commit 5560542

Please sign in to comment.