Giter VIP home page Giter VIP logo

concatenate-me-plz's Introduction

Concatenate Data

A script for concatenating data from multiple csv files in a given directory. The script will retain the headers and repeat them on every other row of the output contentated file. This is an oddity which is needed for downstream processing.

Usage

You will need to place the directory with the csvs you want to concatenate into the data directory with the title All_subjects_spreadsheets so that you have: <project root>/data/All_subjects_spreadsheets.

While in the root of this repository, run the following command:

python src/merge.py

By default, this will use the input data directory located at <project root>/data/All_subjects_spreadsheets and will output the results to <project_root>/data/concatenated.csv.

If, however, you want to customize these values, you may run:

python src/merge.py --indir <path to input directory> --outfile <path to output file>

Installation

This project was developed and tested with Python 3.11.2. It uses the pandas and tqdm packages.
To install dependencies into your local environment, run the following command:

pip install -r requirements.txt

concatenate-me-plz's People

Contributors

abuonomo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.