Working with Text Files in Python

with Martin Ganchev

Covering the essentials and providing hands-on experience working with *.csv, *.txt, *.json, and other types of text files in Python. With these tools under your belt, you’ll be an independent analyst, ready to gain more insights from your data.

2 hours 22 lessons
Start course
22 High Quality Lessons
1 Practical Tasks
2 Hours of Content
Certificate of Achievement

Course Overview

By completing this course, you’ll obtain a comprehensive set of theoretical and practical tools to understand and handle raw data. We will extensively cover the difference between a file and file object, reading and parsing, and structured and unstructured data. Then, we’ll dive into the complex world of data connectivity by solving hands-on tasks in Python with *.txt, *.json, *.xlsx, and *.csv formats. The more you learn about data science and become an authentic practitioner, the more you realize that you’ll be independent in your research and making your predictions if (and only if) you can manage your data by yourself.

Topics covered

importing dataJupyterProgrammingPython

What You'll Learn

At the beginning of your analyses, data will rarely be waiting for you neatly and cleanly in a, say, *.csv format that you can load and use for statistical analysis directly. On the contrary, real-world data is messy, comes from various sources, and contains errors and missing or unknown values. It’s vague and, on top of that, comes in different formats, shapes, and sizes. This course teaches you how to tame this chaos.

Build from solid explanations of such essential terms as a file object, file, text file, and text data
Distinguish between reading and parsing data
Learn and understand several types of data organization
Use Python and pandas to load and parse data
Work with *.txt., *.csv, *.json, *.xlsx formats


Student feedback


253 ratings
5 stars
206 (81%)
4 stars
37 (15%)
3 stars
8 (3%)
2 stars
1 (0%)
1 star
1 (0%)
Filter by rating
  • 5 stars
  • 4 stars
  • 3 stars
  • 2 stars
  • 1 stars
  • Newest
  • Oldest
This is too fast!! If it is expected that the student should have some background before taking this course, it needs to be mentioned in the course overview
I am so happy that I started this course. It's well explained. Basic and essential for someone who just started learning how manipulating data via Python.
The Introduction to Working with Text Files and Data has grounded the basic knowledge and appreciation of the terms Files and Data.
It was very good but not exactly what i was looking for altough i definitely learned quite a bunch
This course was very informative and had a lot very helpful information. Thank you.
  • 1
  • 2
  • 3
  • 4
  • ...
  • 6
Martin Ganchev

“A good data scientist spends more time preparing their data than using it for prediction afterward. In just a couple of hours, you’ll acquire reliable guidelines for handling data in various formats and learn to apply them in Python.”

Martin Ganchev

Worked at the European Commission

Working with Text Files in Python

with Martin Ganchev

Start Course