cookies-icon

Our website uses cookies. By using this website, you agree to their use in accordance with the browser settings. You can modify your browser settings on your own. For more information see our Privacy Policy.

Course

Basic

How to Read and Write CSV Files in Python

Learn how to work with the Python CSV module, and automate simple work tasks! Find out how to open, read, write a CSV file in Python.

Table of contents

Lifetime access

B042DDD8-A1C9-4053-8AF3-463EB31543B8@2x

limited to this course only

$29

Buy now

Want a better deal?

B042DDD8-A1C9-4053-8AF3-463EB31543B8@2x

Get unlimited lifetime access to all 13 present and future courses

Save $220

Unlimited lifetime access

B042DDD8-A1C9-4053-8AF3-463EB31543B8@2x

to all 13 present and future courses

$ 129

$ 349

63% OFF

Buy now Full pricing
51

Interactive exercises

7 h

Estimated time

296

Users enrolled

☆☆☆☆☆
★★★★★

1 ratings

Python is a general-purpose language that allows you to perform tasks related to different flavors of programming and data science. Thanks to Python, you can freely process different file formats and automate your daily work with text files. After completing this course, you'll be able to automate CSV-related tasks.

How to Read and Write CSV Files in Python is an online course that introduces you, without going into too much detail, to CSV file operations. You'll learn how it works and see some practical examples.

Course cover image. A cartoon person showing the format of a CSV file

After the introduction, you'll learn how to read CSV files with opencsv and process them in for loops. You'll also learn how to read a CSV row into a list or dictionary and how to switch between various CSV formats.

Finally, you'll find that there's no single CSV standard and will learn how to create a CSV dialect that matches your preferred CSV file format.

How to Read and Write CSV Files in Python is one of the courses from our Python File Processing series, where you'll learn how to work with files of different formats in Python. You can complete online courses from the Python File Processing series in your desired order, as they're independent!

Do you deal with CSV file at work? Then this skill is a must-have on your list. Start learning it today!

This online course will be of interest to data science beginners and business professionals performing data analysis with CSV files.

Scroll down for an overview of the topics covered in this course, and to learn more about who else will benefit from completing it.

What's in It for Me?

  • 51 interactive exercises. Learn at your own pace, from anywhere and anytime. Interact with hands-on exercises for improved retention.
  • Lifetime access to the course. When you purchase the course, you'll get instant personal access to all of its content.
  • Certificate of completion. After you successfully finish all of the exercises, you'll get a downloadable PDF certificate to showcase your accomplishment.
  • 30-day money back guarantee. If you're not satisfied with the quality of the course, you can get a refund within 30 days of your purchase.
  • Hints for the exercises. You can ask questions and share insights with other members of our community through the Discuss tab.

What Are the Requirements?

Learn How To:

  • Work with CSV files in Python.
  • Open and read a CSV file with opencsv.
  • Write to a CSV file in Python using a for loop.
  • Differentiate between and handle various CSV dialects.

Who Should Take This Course?

  • Students taking entry-level classes in Python.
  • People interested in data science.
  • Business professionals analyzing big data.
  • Anyone working with CSV files who wants to automate their simple work tasks.

Table of contents

Free

Paid content

0%

Course progress

0/51

Exercises completed

1.

Introduction

What are CSV files? Let's find out!

0/6
Start now

5.

Final Quiz

Check your skills in this final quiz

0/8

Reviews (0)

Average rating

5.00 / 5

☆☆☆☆☆
★★★★★

1 ratings

Details

5 stars

100%

4 stars

0%

3 stars

0%

2 stars

0%

1 stars

0%