Skip to content

This Python script is designed to extract and filter specific columns from CSV (Comma-Separated Values) files. It provides a convenient way to preprocess CSV data by selecting desired columns and generating a new CSV file with the filtered data.

Notifications You must be signed in to change notification settings

korentmaj/CSVTrimmer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

CSV Trimmer

This Python script is designed to extract and filter specific columns from CSV (Comma-Separated Values) files. It provides a convenient way to preprocess CSV data by selecting desired columns and generating a new CSV file with the filtered data.

Features

Extracts and filters CSV data based on specified column criteria. Simplifies data preprocessing tasks by creating a new CSV file containing only the selected columns. Easy to customize: simply update the file paths and column names as needed.

Usage

  • Ensure you have Python installed on your system.
  • Clone this repository to your local machine.
  • Open the script in your preferred Python editor.
  • Update the file paths (original_csv_path and filtered_csv_path) and specify the columns you want to keep (columns_to_keep).
  • Run the script to generate the filtered CSV file.

Google Colab

Open In Colab

An interactive Google Colab version of this CSV trimming script is also available. You can access and run the script directly in a Colab environment for easy experimentation and data processing.

About

This Python script is designed to extract and filter specific columns from CSV (Comma-Separated Values) files. It provides a convenient way to preprocess CSV data by selecting desired columns and generating a new CSV file with the filtered data.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published