e-learning

Python - Files & CSV

Abstract

Here we'll give a quick tutorial on how to read and write files within Python.

About This Material

This is a Hands-on Tutorial from the GTN which is usable either for individual self-study, or as a teaching material in a classroom.

Questions this will address

  • How can I read from a file?
  • How can I parse a CSV file?
  • How can I write results out

Learning Objectives

  • Read data from a file
  • Write new data to a file
  • Use with to ensure the file is closed properly.
  • Use the CSV module to parse comma and tab separated datasets.

Licence: Creative Commons Attribution 4.0 International

Keywords: Foundations of Data Science, jupyter-notebook

Target audience: Students

Resource type: e-learning

Version: 4

Status: Active

Learning objectives:

  • Read data from a file
  • Write new data to a file
  • Use with to ensure the file is closed properly.
  • Use the CSV module to parse comma and tab separated datasets.

Date modified: 2023-02-13

Date published: 2022-04-25

Authors: Bazante Sanders, Donny Vrins, Helena Rasche

Contributors: Bazante Sanders, Donny Vrins, Helena Rasche

Scientific topics: Software engineering


Activity log