YoVDO

Python: Working with Files

Offered By: LinkedIn Learning

Tags

Python Courses JSON Courses Data Aggregation Courses File Handling Courses

Course Description

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Learn how you can use Python to automate operating system tasks, aggregate data across multiple sources, save results to files, and level up your Python applications.

Syllabus

Introduction
  • Automate file tasks with Python
  • Using CoderPad
1. Accessing Directory and File Details
  • Understand the file system
  • Navigate the file system with os module
  • Use os module to uncover path and file details
  • Filter path names with glob module
  • Recursively list all files in a directory
  • Understand Python's new pathlib module
  • Create directories in Python
  • Solution: Count the number of files
2. Processing Files
  • Open files in Python
  • Read text files in Python
  • Parse JSON files with Python
  • Read CSV files in Python with csv module and pandas
  • Extract text from PDF files using Python
  • Solution: Find most common word in files
3. Writing to Files
  • Write data to a file in Python
  • Move and rename files with Python
  • Copy with Python
  • Delete files with Python
  • Save tabular data with csv module
  • Write data to a JSON file in Python
  • Solution: Rename and Reorganize Photo Files
  • Solution: Parse JSON file with Python
4. Working with Archives and Temporary Files
  • Create ZIP archives with Python
  • Read from and extract ZIP archives
  • Open and read TAR archives
  • Extract from and write to TAR archives
  • Work with temporary files in Python
  • Solution: Find duplicate files
Conclusion
  • Continue to analyze data with Python

Taught by

Kathryn Hodge

Related Courses

Build a Simple Dynamic Site with Node.js Course (How To)
Treehouse
Introducción a la programación en Python I: Aprendiendo a programar con Python
Pontificia Universidad Católica de Chile via Coursera
Excel/VBA for Creative Problem Solving, Part 2
University of Colorado Boulder via Coursera
Python Functions, Files, and Dictionaries
University of Michigan via Coursera
Estructuras de datos en Python
Universidad Austral via Coursera