ITECH-1400 Data Science Project: Text File Manipulation using Python

Verified

Added on  2025/08/07

|10
|372
|247
AI Summary
Desklib provides solved assignments and past papers to help students succeed.
Document Page
ITECH-1400
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
Table of Contents
Introduction................................................................................................................................3
Sonnets File................................................................................................................................4
Pseudocode.............................................................................................................................4
Coding and Implementation...................................................................................................4
Code Output...........................................................................................................................5
Doublet File................................................................................................................................6
Pseudocode.............................................................................................................................6
Coding and Implementation...................................................................................................6
Code Output...........................................................................................................................8
Conclusion..................................................................................................................................9
References................................................................................................................................10
Document Page
Introduction
In the assignment, the program will be developed on the basis of python skills for exploring
& manipulating the text files. It demands the whole script of reading the file by performing
the various logics or operations for example, counting letters occurrence. Below down, the
pseudocode and the coding screens will be provided for Sonnets file and the Doublets file.
Document Page
Sonnets File
Pseudocode
- Firstly, it will read the Shakespear_Sonnets file.
- Then it will split the words in the different lines.
- With the help of graphs, it will provide the graphical representation of words added.
- It also checks the difference with the help of graphs.
- It the values is less than two (2), then it will be stated as shortest path (Cielen, et al.,
2016).
Coding and Implementation
Figure 1: Code part
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
Code Output
Figure 2: Output Screen
Document Page
Doublet File
Pseudocode
- Firstly, it will read the Words_List file.
- Then it will split the words in the different lines.
- Created list will be used.
- Data frames will be created in the form of columns.
- Every letter is converted into lowercase.
- Letters will be counted.
- Count letter will be sorted, after that it will displayed to the end-users (Nagpal & Gabrani,
2019).
Coding and Implementation
Figure 3: Code part 1
Document Page
Figure 4: Code part 2
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
Code Output
Figure 5: Output Screen
Document Page
Conclusion
It is concluded that the program is coded in the python platform for exploring & manipulating
the text files named as “Shakespear_Sonnets” and “Words_List”. There are such libraries of
python is been used for developing the program is String, NumPy, and Pandas. The
successful running of the code is provided in the form of code screenshots and the output
screens of program.
Document Page
References
Cielen, D., Meysman, A. and Ali, M., 2016. Introducing data science: big data, machine
learning, and more, using Python tools. Manning Publications Co
Nagpal, A. and Gabrani, G., 2019, February. Python for Data Analytics, Scientific and
Technical Applications. In 2019 Amity International Conference on Artificial Intelligence
(AICAI) (pp. 140-145). IEEE.
chevron_up_icon
1 out of 10
circle_padding
hide_on_mobile
zoom_out_icon
[object Object]